@startupjs/cli 0.55.0-alpha.18 → 0.55.0-alpha.21
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 +4 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -106,7 +106,7 @@ SCRIPTS_ORIG.start = ({ inspect } = {}) => oneLine(`
|
|
|
106
106
|
|
|
107
107
|
SCRIPTS_ORIG.web = oneLine(`
|
|
108
108
|
npx cross-env WEBPACK_DEV=1
|
|
109
|
-
npx webpack-dev-server --config webpack.web.config.
|
|
109
|
+
npx webpack-dev-server --config webpack.web.config.cjs
|
|
110
110
|
`)
|
|
111
111
|
|
|
112
112
|
// Server
|
|
@@ -115,6 +115,7 @@ SCRIPTS_ORIG.server = ({ inspect } = {}) => oneLine(`
|
|
|
115
115
|
node
|
|
116
116
|
${inspect ? '--inspect' : ''}
|
|
117
117
|
--watch
|
|
118
|
+
--experimental-detect-module
|
|
118
119
|
server.js
|
|
119
120
|
`)
|
|
120
121
|
|
|
@@ -123,12 +124,12 @@ SCRIPTS_ORIG.server = ({ inspect } = {}) => oneLine(`
|
|
|
123
124
|
SCRIPTS_ORIG.build = ({ async } = {}) => oneLine(`
|
|
124
125
|
npx rimraf ./build &&
|
|
125
126
|
${async ? 'npx cross-env ASYNC=1' : ''}
|
|
126
|
-
npx webpack --config webpack.web.config.
|
|
127
|
+
npx webpack --config webpack.web.config.cjs
|
|
127
128
|
`)
|
|
128
129
|
|
|
129
130
|
SCRIPTS_ORIG.startProduction = oneLine(`
|
|
130
131
|
npx cross-env NODE_ENV=production
|
|
131
|
-
node server.js
|
|
132
|
+
node --experimental-detect-module server.js
|
|
132
133
|
`)
|
|
133
134
|
|
|
134
135
|
// Etc
|
|
@@ -496,8 +497,6 @@ function patchPackageJson (projectPath) {
|
|
|
496
497
|
delete packageJSON.devDependencies['react-test-renderer']
|
|
497
498
|
delete packageJSON.devDependencies.jest
|
|
498
499
|
|
|
499
|
-
packageJSON.type = 'module'
|
|
500
|
-
|
|
501
500
|
packageJSON.scripts = {
|
|
502
501
|
...packageJSON.scripts,
|
|
503
502
|
...SCRIPTS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.55.0-alpha.
|
|
3
|
+
"version": "0.55.0-alpha.21",
|
|
4
4
|
"description": "start, watch and build startupjs project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"webpack-cli": "^4.9.1",
|
|
25
25
|
"webpack-dev-server": "^4.4.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "dd258e5ef42d82acc57c1302927a29844c13bd5d"
|
|
28
28
|
}
|