Skip to content

Commit e22c651

Browse files
Gcaufyleeyeh
authored andcommitted
fix(build): add windows support (#530)
1 parent 34cd209 commit e22c651

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"scripts": {
1111
"lint": "tsc storage.d.ts",
1212
"test": "npm run lint && npm run test:node",
13-
"test:node": "NODE_ENV=test nyc --reporter lcov --reporter text mocha --timeout 300000 test/index.js",
13+
"test:node": "cross-env NODE_ENV=test nyc --reporter lcov --reporter text mocha --timeout 300000 test/index.js",
1414
"docs": "jsdoc src README.md package.json -d docs -c .jsdocrc.json",
1515
"build:node": "gulp babel-node",
16-
"build:browser": "CLIENT_PLATFORM=Browser webpack --config webpack/browser.js",
17-
"build:rn": "CLIENT_PLATFORM=ReactNative webpack --config webpack/rn.js",
18-
"build:weapp": "CLIENT_PLATFORM=Weapp webpack --config webpack/weapp.js",
16+
"build:browser": "cross-env CLIENT_PLATFORM=Browser webpack --config webpack/browser.js",
17+
"build:rn": "cross-env CLIENT_PLATFORM=ReactNative webpack --config webpack/rn.js",
18+
"build:weapp": "cross-env CLIENT_PLATFORM=Weapp webpack --config webpack/weapp.js",
1919
"build": "gulp build && npm run build:live-query",
2020
"build:live-query": "export LIVE_QUERY=1 && npm run build:browser && npm run build:rn && npm run build:weapp",
2121
"prepublishOnly": "./script/check-version.js"
@@ -37,6 +37,7 @@
3737
"babel-plugin-istanbul": "^2.0.0",
3838
"babel-preset-es2015": "^6.3.13",
3939
"babel-register": "^6.14.0",
40+
"cross-env": "^5.1.3",
4041
"docdash": "git+https://github.com/leeyeh/docdash.git#leancloud",
4142
"eslint": "^2.8.0",
4243
"eslint-config-airbnb": "^8.0.0",

0 commit comments

Comments
 (0)