@startupjs/cli 0.54.9 → 0.54.11
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/corepack.sh +0 -3
- package/index.js +16 -1
- package/package.json +2 -2
package/corepack.sh
CHANGED
package/index.js
CHANGED
|
@@ -388,7 +388,9 @@ commander
|
|
|
388
388
|
{ shell: true, stdio: 'inherit' }
|
|
389
389
|
)
|
|
390
390
|
} catch (e) {
|
|
391
|
-
|
|
391
|
+
const { message } = e
|
|
392
|
+
if (message) throw Error('Setup corepack: ', message)
|
|
393
|
+
return
|
|
392
394
|
}
|
|
393
395
|
|
|
394
396
|
const projectPath = path.join(process.cwd(), LOCAL_DIR, projectName)
|
|
@@ -416,6 +418,19 @@ commander
|
|
|
416
418
|
stdio: 'inherit'
|
|
417
419
|
})
|
|
418
420
|
|
|
421
|
+
// specify yarn version
|
|
422
|
+
// it would be more correct to reinstall the packages
|
|
423
|
+
// after specifying the yarn version
|
|
424
|
+
// but since the 'yarn add' command will be executed next - it will
|
|
425
|
+
// reinstall the packages
|
|
426
|
+
// also, it would be more correct don't use 'yarn remove' command
|
|
427
|
+
// because if there is no package (due to the difference in react native packages)
|
|
428
|
+
// then everything will break
|
|
429
|
+
await execa('corepack', ['use', `yarn@${yarn}`], {
|
|
430
|
+
cwd: projectPath,
|
|
431
|
+
stdio: 'inherit'
|
|
432
|
+
})
|
|
433
|
+
|
|
419
434
|
// remove extra files which are covered by startupjs core
|
|
420
435
|
if (REMOVE_FILES.length) {
|
|
421
436
|
await execa('rm', ['-f'].concat(REMOVE_FILES), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.11",
|
|
4
4
|
"description": "start, watch and build startupjs project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"webpack-cli": "^4.9.1",
|
|
26
26
|
"webpack-dev-server": "^4.4.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f24871d15b2cf74abb03ccb11adc1f5495a9cdcd"
|
|
29
29
|
}
|