Browse Source

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 <artur.catch@hotmail.it>
pull/6169/head
mohamed yahia 1 year ago
committed by GitHub
parent
commit
1c16e596aa
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/cli/package.json
  2. 2
      packages/core/package.json

2
packages/cli/package.json

@ -9,7 +9,7 @@
"dist"
],
"scripts": {
"build": "BUILD_MODE=production webpack --config ./webpack.cli.ts",
"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'",

2
packages/core/package.json

@ -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",

Loading…
Cancel
Save