diff --git a/package.json b/package.json index 33d090df6..c88644277 100644 --- a/package.json +++ b/package.json @@ -146,26 +146,26 @@ ], "scripts": { "type-check": "tsc --noEmit", - "type-check:watch": "npm run type-check -- --watch", + "type-check:watch": "cross-env-shell $npm_execpath run type-check -- --watch", "release": "standard-version -a", "test:clean": "npx jest --clearCache", "test:acceptance": "codeceptjs run --steps", - "test:acceptance:server": "concurrently --kill-others \"npm run verdaccio:server\" \"npm run test:acceptance\"", + "test:acceptance:server": "concurrently --kill-others \"cross-env-shell $npm_execpath run verdaccio:server\" \"cross-env-shell $npm_execpath run test:acceptance\"", "test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --config ./jest/jest.config.js --maxWorkers 2 --passWithNoTests", "test:size": "bundlesize", - "lint": "npm run lint:js && npm run lint:css && npm run lint:lockfile", - "lint:js": "npm run type-check && eslint . --ext .js,.ts,.tsx", + "lint": "cross-env-shell $npm_execpath run lint:js && cross-env-shell $npm_execpath run lint:css && cross-env-shell $npm_execpath run lint:lockfile", + "lint:js": "cross-env-shell $npm_execpath run type-check && eslint . --ext .js,.ts,.tsx", "lint:css": "stylelint \"src/**/styles.ts\"", - "lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts verdaccio npm yarn", + "lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts verdaccio cross-env-shell $npm_execpath yarn", "coverage:publish": "codecov", "pre:webpack": "rimraf static/*", - "prepublish": "in-publish && npm run build || not-in-publish", + "prepublish": "in-publish && cross-env-shell $npm_execpath run build || not-in-publish", "dev:web": "cross-env BABEL_ENV=ui babel-node tools/dev.server.js", "verdaccio:server": "node tools/verdaccio.js", - "build": "npm run pre:webpack && cross-env BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js", + "build": "cross-env-shell $npm_execpath run pre:webpack && cross-env BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js", "build:stats": "cross-env BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js --json > stats.json", "build:size": "cross-env BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js --json | webpack-bundle-size-analyzer", - "dev": "concurrently --kill-others \"npm run dev:web\" \"npm run verdaccio:server\"" + "dev": "concurrently --kill-others \"cross-env-shell $npm_execpath run dev:web\" \"cross-env-shell $npm_execpath run verdaccio:server\"" }, "engines": { "node": ">=8",