Skip to content

Commit

Permalink
Fix CLI installation and add Windows compatibility for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsalem401 committed Sep 23, 2024
1 parent d48e1e3 commit 2bbe1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dist"
],
"scripts": {
"build": "BUILD_MODE=production webpack --config ./webpack.cli.ts",
"postinstall": "pnpm run build",
"build": "cross-env BUILD_MODE=production webpack --config ./webpack.cli.ts",
"build:watch": "webpack --config ./webpack.cli.ts --watch",
"lint": "eslint src",
"patch": "npm version patch -m 'Bump v%s'",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"build": "npm run build-all",
"build-all": "run-s build:*",
"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\"",
"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\"",
"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\"",
"build:css": "sass src/styles/scss/main.scss dist/css/grapes.min.css --no-source-map --style=compressed --load-path=node_modules",
"ts:build": "node node_modules/grapesjs-cli/dist/cli.js build --dts='only' --patch=false",
"ts:check": "tsc --noEmit --esModuleInterop dist/index.d.ts",
Expand Down

0 comments on commit 2bbe1dc

Please sign in to comment.