From 0fb8cfcc006d206674654b676b67b348a084f754 Mon Sep 17 00:00:00 2001 From: Ryan Meyer Date: Wed, 7 Sep 2022 11:08:36 -0400 Subject: [PATCH] Install cross-env to support Windows development --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e36df20..5ff0ee1 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,9 @@ "prep-dist": "rimraf dist && yarn babel:all && yarn tsc -p tsconfig.dist.json && node ./scripts/copyStyles.js && yarn webpack --config webpack-standalone.config.js", "publish-to-npm": "yarn prep-dist && yarn publish", "babel:all": "yarn babel:cjs && yarn babel:esm && yarn babel:umd", - "babel:cjs": "BABEL_ENV=cjs babel --source-maps --extensions \".ts,.tsx\" --ignore \"**/__tests__\" src --out-dir dist/js --presets=@babel/env", - "babel:esm": "BABEL_ENV=esm babel --source-maps --extensions \".ts,.tsx\" --ignore \"**/__tests__\" src --out-dir dist/esm", - "babel:umd": "BABEL_ENV=umd babel --source-maps --extensions \".ts,.tsx\" --ignore \"**/__tests__\" src --out-dir dist/umd --plugins=transform-es2015-modules-umd" + "babel:cjs": "cross-env BABEL_ENV=cjs babel --source-maps --extensions \".ts,.tsx\" --ignore \"**/__tests__\" src --out-dir dist/js --presets=@babel/env", + "babel:esm": "cross-env BABEL_ENV=esm babel --source-maps --extensions \".ts,.tsx\" --ignore \"**/__tests__\" src --out-dir dist/esm", + "babel:umd": "cross-env BABEL_ENV=umd babel --source-maps --extensions \".ts,.tsx\" --ignore \"**/__tests__\" src --out-dir dist/umd --plugins=transform-es2015-modules-umd" }, "files": [ "dist" @@ -86,6 +86,7 @@ "babel-plugin-transform-es2015-modules-umd": "^6.24.1", "babel-plugin-typescript-to-proptypes": "^1.3.2", "canvas": "^2.6.1", + "cross-env": "^7.0.3", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.2", "enzyme-to-json": "^3.4.4",