Skip to content

Commit

Permalink
We need to use cross platform cp command to support windows developers (
Browse files Browse the repository at this point in the history
#1282)

* We need to use cross platform cp command to support windows developers

* cp-cli to dev dependencies
  • Loading branch information
anton-nagornyi authored and jaredpalmer committed Jan 29, 2019
1 parent 29996e3 commit 786458d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -27,9 +27,9 @@
"scripts": {
"test": "jest --env=jsdom",
"test:watch": "npm run test -- --watch",
"start": "cp ./index.js ./dist/index.js && cross-env NODE_ENV=development rollup -w -c | tsc -w -p tsconfig.base.json",
"start": "cp-cli ./index.js ./dist/index.js && cross-env NODE_ENV=development rollup -w -c | tsc -w -p tsconfig.base.json",
"prebuild": "rimraf dist",
"build": "cross-env NODE_ENV=production tsc -p tsconfig.base.json && rollup -c && rimraf compiled && cp ./index.js ./dist/index.js",
"build": "cross-env NODE_ENV=production tsc -p tsconfig.base.json && rollup -c && rimraf compiled && cp-cli ./index.js ./dist/index.js",
"prepublish": "npm run build",
"format": "prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md'",
"precommit": "lint-staged",
Expand Down Expand Up @@ -96,7 +96,8 @@
"tslint": "^5.11.0",
"tslint-react": "^3.6.0",
"typescript": "^3.1.6",
"yup": "0.21.3"
"yup": "0.21.3",
"cp-cli": "^1.1.2"
},
"lint-staged": {
"**/*.{ts,tsx}": [
Expand Down
33 changes: 25 additions & 8 deletions yarn.lock
Expand Up @@ -2904,6 +2904,14 @@ cosmiconfig@^5.0.2:
js-yaml "^3.9.0"
parse-json "^4.0.0"

cp-cli@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/cp-cli/-/cp-cli-1.1.2.tgz#b24e1fdb8b07a27ce3879995c8c0c6d67caa8b86"
integrity sha1-sk4f24sHonzjh5mVyMDG1nyqi4Y=
dependencies:
fs-extra "5.0.0"
yargs "11.0.0"

cpx@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/cpx/-/cpx-1.5.0.tgz#185be018511d87270dedccc293171e37655ab88f"
Expand Down Expand Up @@ -4192,6 +4200,15 @@ from@~0:
version "0.1.7"
resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"

fs-extra@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd"
integrity sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==
dependencies:
graceful-fs "^4.1.2"
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-extra@6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-6.0.0.tgz#0f0afb290bb3deb87978da816fcd3c7797f3a817"
Expand Down Expand Up @@ -10023,9 +10040,9 @@ yargs-parser@^9.0.2:
dependencies:
camelcase "^4.1.0"

yargs@^10.0.3:
version "10.1.2"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5"
yargs@11.0.0, yargs@^11.0.0:
version "11.0.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.0.0.tgz#c052931006c5eee74610e5fc0354bedfd08a201b"
dependencies:
cliui "^4.0.0"
decamelize "^1.1.1"
Expand All @@ -10038,11 +10055,11 @@ yargs@^10.0.3:
string-width "^2.0.0"
which-module "^2.0.0"
y18n "^3.2.1"
yargs-parser "^8.1.0"
yargs-parser "^9.0.2"

yargs@^11.0.0:
version "11.0.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.0.0.tgz#c052931006c5eee74610e5fc0354bedfd08a201b"
yargs@^10.0.3:
version "10.1.2"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5"
dependencies:
cliui "^4.0.0"
decamelize "^1.1.1"
Expand All @@ -10055,7 +10072,7 @@ yargs@^11.0.0:
string-width "^2.0.0"
which-module "^2.0.0"
y18n "^3.2.1"
yargs-parser "^9.0.2"
yargs-parser "^8.1.0"

yargs@^8.0.2:
version "8.0.2"
Expand Down

0 comments on commit 786458d

Please sign in to comment.