@startupjs/cli 0.54.10 → 0.54.12

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/corepack.sh +0 -3
  2. package/index.js +9 -8
  3. package/package.json +2 -2
package/corepack.sh CHANGED
@@ -47,9 +47,6 @@ function main () {
47
47
 
48
48
  # do 'corepack enable'
49
49
  corepack enable
50
-
51
- # do 'corepack use yarn@4'
52
- corepack use yarn@"$1"
53
50
  }
54
51
 
55
52
  main "$@"; exit
package/index.js CHANGED
@@ -388,7 +388,7 @@ commander
388
388
  { shell: true, stdio: 'inherit' }
389
389
  )
390
390
  } catch (e) {
391
- throw new Error('Setup corepack error: ', e)
391
+ throw Error('Setup corepack: ', e)
392
392
  }
393
393
 
394
394
  const projectPath = path.join(process.cwd(), LOCAL_DIR, projectName)
@@ -417,13 +417,14 @@ commander
417
417
  })
418
418
 
419
419
  // specify yarn version
420
- // it would be more correct to reinstall the packages
421
- // after specifying the yarn version
422
- // but since the 'yarn add' command will be executed next - it will
423
- // reinstall the packages
424
- // also, it would be more correct don't use 'yarn remove' command
425
- // because if there is no package (due to the difference in react native packages)
426
- // then everything will break
420
+ await execa('rm', ['-rf', 'node_modules'], {
421
+ cwd: projectPath,
422
+ stdio: 'inherit'
423
+ })
424
+ await execa('rf', ['-f', 'yarn.lock'], {
425
+ cwd: projectPath,
426
+ stdio: 'inherit'
427
+ })
427
428
  await execa('corepack', ['use', `yarn@${yarn}`], {
428
429
  cwd: projectPath,
429
430
  stdio: 'inherit'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/cli",
3
- "version": "0.54.10",
3
+ "version": "0.54.12",
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": "30e50628e1b4750711b52d370454e7add126088a"
28
+ "gitHead": "8d242cf55a741b12e6189a2e004e550874864e7c"
29
29
  }