Skip to content

Commit

Permalink
fix: update script to be platform neutral
Browse files Browse the repository at this point in the history
The preinstall script should be able to run on win32 systems.
  • Loading branch information
KnisterPeter authored and herschel666 committed Nov 25, 2019
1 parent 47d8841 commit 541b558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"herschel666 <kraemerseele@gmx.de> (https://www.xing.com/profile/Emanuel_Kluge)"
],
"scripts": {
"preinstall": "/usr/bin/env bash -c \"[[ $npm_execpath = *'yarn'* ]] || (echo 'use yarn' && exit 1)\"",
"preinstall": "node -e \"process.exit(process.env.npm_execpath.includes('yarn') ? 0 : 1)\"",
"start": "cd packages/template-react; yarn start",
"start:graphql": "cd packages/template-graphql; yarn start",
"test": "jest",
Expand Down

0 comments on commit 541b558

Please sign in to comment.