Skip to content

Commit

Permalink
Add pre/postinstall scripts to prevent 'npm install' command from fai…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
jmgaya committed May 15, 2024
1 parent 0af73ea commit 37f6003
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@
"lint:fix": "eslint . --ext .js,.vue --fix",
"lint:css": "stylelint './app/assets/stylesheets/**/*.scss'",
"bump": "npm --no-git-tag-version version prerelease --preid=assets",
"preinstall": "git config --global url.'https://'.insteadOf 'git://'",
"postinstall": "git config --global --unset url.'https://'.insteadOf",
"postversion": "git add package.json package-lock.json && git commit -m 'Bump assets version' && git push",
"update-internal-deps": "rm -rf node_modules && npm install",
"branch-files": "node lib/build/branchFiles/branchFiles.js",
Expand Down

0 comments on commit 37f6003

Please sign in to comment.