add cross-env

This commit is contained in:
fyears 2021-11-07 14:51:00 +08:00
parent e8d6a50793
commit ccd9e3116c

View File

@ -7,7 +7,7 @@
"build": "webpack --mode production",
"format": "npx prettier --write .",
"clean": "npx rimraf main.js",
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'tests/**/*.ts'"
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha -r ts-node/register 'tests/**/*.ts'"
},
"source": "main.ts",
"keywords": [],
@ -19,6 +19,7 @@
"@types/mocha": "^9.0.0",
"@types/node": "^14.14.37",
"chai": "^4.3.4",
"cross-env": "^7.0.3",
"mocha": "^9.1.3",
"prettier": "^2.4.1",
"terser-webpack-plugin": "^5.2.4",