diff --git a/package.json b/package.json index e24073e..cab2b01 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "main": "dist/index.js", "scripts": { "webpack:base": "node_modules/webpack/bin/webpack.js --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "dev:base": "NODE_ENV=development yarn webpack:base", + "dev:base": "cross-env NODE_ENV=development yarn webpack:base", "dev": "yarn dev:base --progress", "watch": "yarn dev --watch", - "prod": "NODE_ENV=production yarn webpack:base", + "prod": "cross-env NODE_ENV=production yarn webpack:base", "lint": "eslint --ext js .", "lint:fix": "yarn lint --fix", "prepublishOnly": "yarn test && yarn prod", @@ -37,6 +37,7 @@ "babel-loader": "^8.1.0", "chai": "^4.2.0", "codecov": "^3.6.5", + "cross-env": "^7.0.2", "eslint": "^7.0.0", "laravel-mix": "^5.0.4", "mocha": "^7.1.2", diff --git a/yarn.lock b/yarn.lock index 404dee2..960b948 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3087,6 +3087,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" +cross-env@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.2.tgz#bd5ed31339a93a3418ac4f3ca9ca3403082ae5f9" + integrity sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw== + dependencies: + cross-spawn "^7.0.1" + cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -3106,7 +3113,7 @@ cross-spawn@^7.0.0: shebang-command "^2.0.0" which "^2.0.1" -cross-spawn@^7.0.2: +cross-spawn@^7.0.1, cross-spawn@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.2.tgz#d0d7dcfa74e89115c7619f4f721a94e1fdb716d6" integrity sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==