@htyf-mp/cli 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/cli.js +4 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ npx @htyf-mp/cli
14
14
 
15
15
  ### 运行应用程序
16
16
 
17
- 进入`mini-apps-template-rn`或`mini-apps-template-taro`目录并运行:
17
+ 进入`mini-apps-template-rn`或`mini-apps-template-taro`或`mini-game-template-cocos`目录并运行:
18
18
  > 具体模板使用,可参考模板内的README.md
19
19
  ```sh
20
20
  npm start
package/cli.js CHANGED
@@ -129,14 +129,17 @@ async function main() {
129
129
  if (tempType === 'taro') {
130
130
  appRootPath = `${appName}/${taroTempPath}`
131
131
  await execa('rm', ['-r', `${appName}/${rnTempPath}`])
132
+ await execa('rm', ['-r', `${appName}/${gameTempPath}`])
132
133
  }
133
134
  if (tempType === 'react-native') {
134
135
  appRootPath = `${appName}/${rnTempPath}`
135
136
  await execa('rm', ['-r', `${appName}/${taroTempPath}`])
137
+ await execa('rm', ['-r', `${appName}/${gameTempPath}`])
136
138
  }
137
139
  if (tempType === 'game-cocos') {
138
140
  appRootPath = `${appName}/${gameTempPath}`
139
- await execa('rm', ['-r', `${appName}/${gameTempPath}`])
141
+ await execa('rm', ['-r', `${appName}/${rnTempPath}`])
142
+ await execa('rm', ['-r', `${appName}/${taroTempPath}`])
140
143
  }
141
144
  await execa('rm', ['-r', `${appName}/cli`])
142
145
  await execa('rm', ['-rf', `${appName}/.git`])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": "cli.js",