Skip to content

Commit

Permalink
Switch from if-env to native env check
Browse files Browse the repository at this point in the history
This way, we don't need to include if-env in the dependencies which would get installed with every instal.
This probably breaks usage of Gulp with NPM on Windows though, but Yarn can be used there.
  • Loading branch information
lehni committed Jun 19, 2020
1 parent 5c999a6 commit 8e87f70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 146 deletions.
144 changes: 0 additions & 144 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"load": "gulp load",
"jshint": "gulp jshint",
"test": "gulp test",
"preinstall": "if-env npm_config_heading=npm && npx npm-force-resolutions"
"preinstall": "[[ $npm_config_heading == 'npm' ]] && npx npm-force-resolutions || true"
},
"files": [
"AUTHORS.md",
Expand Down Expand Up @@ -72,7 +72,6 @@
"gulp-whitespace": "^0.1.0",
"gulp-zip": "^5.0.1",
"husky": "^4.2.5",
"if-env": "^1.0.4",
"jsdom": "^16.2.2",
"jshint": "^2.11.1",
"jshint-summary": "^0.4.0",
Expand Down

0 comments on commit 8e87f70

Please sign in to comment.