Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 8633eeb

Browse files
authored
build: fix build commands on Windows (#155)
Fixes #147
1 parent 73528bd commit 8633eeb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"scripts": {
1717
"build": "npm run build:clean && npm run build:es && npm run build:cjs && npm run build:flow",
1818
"build:clean": "rimraf dist/ && rimraf lib/",
19-
"build:es": "BABEL_ENV=es babel src --ignore '*.test.js,__mocks__' --out-dir lib/es",
20-
"build:cjs": "BABEL_ENV=cjs babel src --ignore '*.test.js,__mocks__' --out-dir lib/cjs",
19+
"build:es": "cross-env BABEL_ENV=es babel src --ignore '*.test.js,__mocks__' --out-dir lib/es",
20+
"build:cjs": "cross-env BABEL_ENV=cjs babel src --ignore '*.test.js,__mocks__' --out-dir lib/cjs",
2121
"build:flow": "flow-copy-source --ignore '{__mocks__/*,*.test}.js' src lib/es",
2222
"demo:dev": "parcel --out-dir demo/dist demo/index.html",
2323
"demo:build": "parcel build --out-dir demo/dist demo/index.html --public-url=/react-popper",
@@ -76,6 +76,7 @@
7676
"babel-preset-env": "^1.6.1",
7777
"babel-preset-react": "^6.24.1",
7878
"babel-preset-stage-1": "^6.24.1",
79+
"cross-env": "^5.1.4",
7980
"emotion": "^9.1.1",
8081
"enzyme": "^3.3.0",
8182
"enzyme-adapter-react-16": "^1.1.1",

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,13 @@ create-react-context@^0.2.1:
17671767
fbjs "^0.8.0"
17681768
gud "^1.0.0"
17691769

1770+
cross-env@^5.1.4:
1771+
version "5.1.4"
1772+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.4.tgz#f61c14291f7cc653bb86457002ea80a04699d022"
1773+
dependencies:
1774+
cross-spawn "^5.1.0"
1775+
is-windows "^1.0.0"
1776+
17701777
cross-spawn@^5.0.1, cross-spawn@^5.1.0:
17711778
version "5.1.0"
17721779
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -3470,7 +3477,7 @@ is-utf8@^0.2.0:
34703477
version "0.2.1"
34713478
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
34723479

3473-
is-windows@^1.0.2:
3480+
is-windows@^1.0.0, is-windows@^1.0.2:
34743481
version "1.0.2"
34753482
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
34763483

0 commit comments

Comments
 (0)