Afther Mao died in 1977, China abandoned marxism and is returning to confusicius ideas and capitalism and allowed private business to exist,
Before 1977 there was no private business in China. It was total communist and more communist than North Korea today and military state. with martial law.
The state of war ended in 1980 and they downsized the army and focused in the civilian economy. it was political change from within as people wanted to focus on building the country and creating wealth etc. with new leadership. the army or militants of the communist party or the red army were moved to sidelines. and reassigned to civilian work. invading Taiwan was low priority