Skip to content

Commit

Permalink
Add cross-env to make build windows compatible (#89)
Browse files Browse the repository at this point in the history
* Add cross-env to make build windows compatible
* remove NODE_ENV from npm build and rollup
* remove node_env from npm test
  • Loading branch information
asabaylus authored Jun 8, 2019
1 parent d6dafeb commit 00bbeae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"module": "dist/main.es.js",
"scripts": {
"build": "rollup -c",
"dev": "npm run prebuild:storybook && concurrently --raw --kill-others \"npm run storybook\" \"NODE_ENV=test jest --config=jest.config.js --watch\"",
"dev": "npm run prebuild:storybook && concurrently --raw --kill-others \"npm run storybook\" \"cross-env NODE_ENV=test jest --config=jest.config.js --watch\"",
"prettier": "eslint --fix src/",
"lint": "eslint src/",
"prepare": "npm run build",
"start": "npm run dev",
"test:generate-output": "jest --silent --json --outputFile=.jest-test-results.json || true",
"test": "NODE_ENV=test jest --config=jest.config.js",
"test": "jest --config=jest.config.js",
"prebuild:storybook": "npm run test:generate-output",
"storybook": "NODE_ENV=development start-storybook -p 6006",
"storybook": "cross-env NODE_ENV=development start-storybook -p 6006",
"docs": "build-storybook -c .storybook -o docs",
"chromatic": "chromatic test"
},
Expand Down Expand Up @@ -84,6 +84,7 @@
"babelrc-rollup": "^3.0.0",
"codecov": "^3.5.0",
"concurrently": "^4.1.0",
"cross-env": "^5.2.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.13.1",
"enzyme-to-json": "^3.3.5",
Expand Down

0 comments on commit 00bbeae

Please sign in to comment.