Skip to content

Commit

Permalink
chore: fiddle with postinstall for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Sep 11, 2017
1 parent 79643d8 commit 08be4d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build/utils/clean-postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let manifest = require('package.json')

manifest.scripts.postinstall = ""
3 changes: 3 additions & 0 deletions build/utils/restore-postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let manifest = require('package.json')

manifest.scripts.postinstall = "./bin/postinstall.sh"
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@
"test": "grunt test",
"test-fast": "grunt test-fast",
"version": "node build/sri-update",
"prepublishOnly": "grunt build && node build/sri-update --validate",
"prepublishOnly": "grunt build && node build/sri-update --validate && clean-postinstall",
"postpublish": "restore-postinstall",
"postinstall": "./bin/postinstall.sh",
"release": "standard-version"
"release": "standard-version",
"clean-postinstall": "node build/utils/clean-postinstall.js",
"restore-postinstall": "node build/utils/restore-postinstall.js"
},
"devDependencies": {
"angular-precommit": "^1.0.3",
Expand Down

0 comments on commit 08be4d0

Please sign in to comment.