Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a34e652

Browse files
committed
add postshrinkwrap step to replace http:// -> https://
- more info: https://npm.community/t/some-packages-have-dist-tarball-as-http-and-not-https/285/44
1 parent 340ea44 commit a34e652

File tree

2 files changed

+265
-1
lines changed

2 files changed

+265
-1
lines changed

package-lock.json

Lines changed: 262 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"preversion": "check-node-version --node 10 --npm 6 && npm-link-check && npm ls --prod",
4848
"version": "npm run build && git add -A dist src build",
4949
"postversion": "node -e \"console.log('Version bumped and committed. If ok, run: git push && git push --tags')\"",
50-
"postpublish": "node tasks/sync_packages.js"
50+
"postpublish": "node tasks/sync_packages.js",
51+
"postshrinkwrap": "replace --silent 'http://' 'https://' package-lock.json"
5152
},
5253
"browserify": {
5354
"transform": [
@@ -153,6 +154,7 @@
153154
"prepend-file": "^1.3.1",
154155
"prettysize": "^2.0.0",
155156
"read-last-lines": "^1.6.0",
157+
"replace": "^1.0.1",
156158
"requirejs": "^2.3.6",
157159
"run-series": "^1.1.8",
158160
"through2": "^3.0.0",

0 commit comments

Comments
 (0)