@startupjs/cli 0.55.0-alpha.12 → 0.55.0-alpha.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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -319,8 +319,8 @@ commander
319
319
  console.log('> Update config.json')
320
320
  updateConfigJson(projectPath, { projectName })
321
321
 
322
- console.log('> Patch package.json with additional scripts')
323
- patchScriptsInPackageJson(projectPath)
322
+ console.log('> Patch package.json')
323
+ patchPackageJson(projectPath)
324
324
 
325
325
  console.log('> Add additional things to .gitignore')
326
326
  appendGitignore(projectPath)
@@ -538,7 +538,7 @@ function renameFonts () {
538
538
  }
539
539
  }
540
540
 
541
- function patchScriptsInPackageJson (projectPath) {
541
+ function patchPackageJson (projectPath) {
542
542
  const packageJSONPath = path.join(projectPath, 'package.json')
543
543
  const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath).toString())
544
544
 
@@ -547,6 +547,8 @@ function patchScriptsInPackageJson (projectPath) {
547
547
  delete packageJSON.devDependencies['react-test-renderer']
548
548
  delete packageJSON.devDependencies.jest
549
549
 
550
+ packageJSON.type = 'module'
551
+
550
552
  packageJSON.scripts = {
551
553
  ...packageJSON.scripts,
552
554
  ...SCRIPTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/cli",
3
- "version": "0.55.0-alpha.12",
3
+ "version": "0.55.0-alpha.13",
4
4
  "description": "start, watch and build startupjs project",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -26,5 +26,5 @@
26
26
  "webpack-cli": "^4.9.1",
27
27
  "webpack-dev-server": "^4.4.0"
28
28
  },
29
- "gitHead": "d9fdf45341ca733978cdc4fa2562055922e0c2ed"
29
+ "gitHead": "d5ba58625b8acd22d74d0c7fbacab7aa216f1c14"
30
30
  }