@mpxjs/cli 3.4.4 → 3.4.6
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.
- package/lib/createRn.js +4 -1
- package/package.json +1 -1
package/lib/createRn.js
CHANGED
|
@@ -49,12 +49,15 @@ async function createRnProject (targetDir, options) {
|
|
|
49
49
|
context: rnProjectPath,
|
|
50
50
|
forcePackageManager: packageManager
|
|
51
51
|
})
|
|
52
|
+
if (pm.bin === 'pnpm') throw new Error('暂不支持pnpm创建,请切换npm或yarn。eg: mpx create -m npm')
|
|
52
53
|
await execa(
|
|
53
54
|
'npx',
|
|
54
55
|
[
|
|
55
|
-
'@react-native-community/cli',
|
|
56
|
+
'@react-native-community/cli@^14.0.0',
|
|
56
57
|
'init',
|
|
57
58
|
'ReactNativeProject',
|
|
59
|
+
'--version',
|
|
60
|
+
'0.75.2',
|
|
58
61
|
'--pm',
|
|
59
62
|
pm.bin,
|
|
60
63
|
'--skip-install',
|
package/package.json
CHANGED