Skip to content

Commit

Permalink
fix: set and use environment variables across platforms with cross-env (
Browse files Browse the repository at this point in the history
  • Loading branch information
estrayn authored and sorrycc committed Oct 14, 2019
1 parent 3e68dad commit a2d5528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generators/plugin/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
},
"main": "lib/index.js",
"scripts": {
"start": "CURRENT_PROJECT=example umi ui",
"start": "cross-env CURRENT_PROJECT=example umi ui",
"build": "father-build",
"prepublishOnly": "npm run build && np --no-cleanup --yolo --no-publish"
},
"devDependencies": {
"cross-env": "^6.0.3",
"father-build": "^1.8.0",
<% if (withUmiUI) { -%>
"antd": "^4.0.0-alpha.0",
Expand Down

0 comments on commit a2d5528

Please sign in to comment.