@htyf-mp/cli 0.0.3 → 0.0.4

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 (2) hide show
  1. package/cli.js +7 -7
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -25,7 +25,7 @@ const green = chalk.green
25
25
  const repoUrl = 'https://github.com/htyf-mp-community/htyf-mp.git'
26
26
 
27
27
  const taroTempPath = 'mini-apps-template-taro';
28
- const rnTempPath = 'mini-apps-template-rn';
28
+ const expoTempPath = 'mini-apps-template-expo';
29
29
  const gameTempPath = 'mini-game-template-cocos';
30
30
 
31
31
  const isYarnInstalled = () => {
@@ -99,8 +99,8 @@ async function main() {
99
99
  value: 'taro',
100
100
  },
101
101
  {
102
- name: 'ReactNative',
103
- value: 'react-native',
102
+ name: 'Expo',
103
+ value: 'expo',
104
104
  },
105
105
  {
106
106
  name: 'Game',
@@ -128,17 +128,17 @@ async function main() {
128
128
  try {
129
129
  if (tempType === 'taro') {
130
130
  appRootPath = `${appName}/${taroTempPath}`
131
- await execa('rm', ['-r', `${appName}/${rnTempPath}`])
131
+ await execa('rm', ['-r', `${appName}/${expoTempPath}`])
132
132
  await execa('rm', ['-r', `${appName}/${gameTempPath}`])
133
133
  }
134
- if (tempType === 'react-native') {
135
- appRootPath = `${appName}/${rnTempPath}`
134
+ if (tempType === 'expo') {
135
+ appRootPath = `${appName}/${expoTempPath}`
136
136
  await execa('rm', ['-r', `${appName}/${taroTempPath}`])
137
137
  await execa('rm', ['-r', `${appName}/${gameTempPath}`])
138
138
  }
139
139
  if (tempType === 'game-cocos') {
140
140
  appRootPath = `${appName}/${gameTempPath}`
141
- await execa('rm', ['-r', `${appName}/${rnTempPath}`])
141
+ await execa('rm', ['-r', `${appName}/${expoTempPath}`])
142
142
  await execa('rm', ['-r', `${appName}/${taroTempPath}`])
143
143
  }
144
144
  await execa('rm', ['-r', `${appName}/cli`])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": "cli.js",