@startupjs/cli 0.54.11 → 0.54.13
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/index.js +9 -10
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -388,9 +388,7 @@ commander
|
|
|
388
388
|
{ shell: true, stdio: 'inherit' }
|
|
389
389
|
)
|
|
390
390
|
} catch (e) {
|
|
391
|
-
|
|
392
|
-
if (message) throw Error('Setup corepack: ', message)
|
|
393
|
-
return
|
|
391
|
+
throw Error('Setup corepack: ', e)
|
|
394
392
|
}
|
|
395
393
|
|
|
396
394
|
const projectPath = path.join(process.cwd(), LOCAL_DIR, projectName)
|
|
@@ -419,13 +417,14 @@ commander
|
|
|
419
417
|
})
|
|
420
418
|
|
|
421
419
|
// specify yarn version
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
420
|
+
await execa('rm', ['-rf', 'node_modules'], {
|
|
421
|
+
cwd: projectPath,
|
|
422
|
+
stdio: 'inherit'
|
|
423
|
+
})
|
|
424
|
+
await execa('rm', ['-f', 'yarn.lock'], {
|
|
425
|
+
cwd: projectPath,
|
|
426
|
+
stdio: 'inherit'
|
|
427
|
+
})
|
|
429
428
|
await execa('corepack', ['use', `yarn@${yarn}`], {
|
|
430
429
|
cwd: projectPath,
|
|
431
430
|
stdio: 'inherit'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.13",
|
|
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": "05a191556bcc4511ab30a204770e63abb25f8a55"
|
|
29
29
|
}
|