Skip to content

Commit 1c16e59

Browse files
Fix CLI installation and add Windows compatibility for scripts (#6166)
* Fix CLI installation and add Windows compatibility for scripts * Remove postinstall --------- Co-authored-by: Artur Arseniev <[email protected]>
1 parent baedf09 commit 1c16e59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dist"
1010
],
1111
"scripts": {
12-
"build": "BUILD_MODE=production webpack --config ./webpack.cli.ts",
12+
"build": "cross-env BUILD_MODE=production webpack --config ./webpack.cli.ts",
1313
"build:watch": "webpack --config ./webpack.cli.ts --watch",
1414
"lint": "eslint src",
1515
"patch": "npm version patch -m 'Bump v%s'",

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"build": "npm run build-all",
6969
"build-all": "run-s build:*",
7070
"build:js": "node node_modules/grapesjs-cli/dist/cli.js build --patch=false --targets=\"> 1%, ie 11, safari 8, not dead\" --statsOutput=\"stats.json\" --localePath=\"src/i18n/locale\"",
71-
"build:mjs": "BUILD_MODULE=true node node_modules/grapesjs-cli/dist/cli.js build --dts='skip' --patch=false --targets=\"> 1%, ie 11, safari 8, not dead\"",
71+
"build:mjs": "cross-env BUILD_MODULE=true node node_modules/grapesjs-cli/dist/cli.js build --dts='skip' --patch=false --targets=\"> 1%, ie 11, safari 8, not dead\"",
7272
"build:css": "sass src/styles/scss/main.scss dist/css/grapes.min.css --no-source-map --style=compressed --load-path=node_modules",
7373
"ts:build": "node node_modules/grapesjs-cli/dist/cli.js build --dts='only' --patch=false",
7474
"ts:check": "tsc --noEmit --esModuleInterop dist/index.d.ts",

0 commit comments

Comments
 (0)