Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit eae04fc

Browse files
committed
feat(scripts): force registry links in shrinkwrap to use tls
1 parent 7b6a2f6 commit eae04fc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

npm-shrinkwrap.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"update-api-docs": "grunt newer:doc && git add docs/api.md",
1414
"precommit": "npm run bump-template-versions && npm run update-api-docs",
1515
"postinstall": "scripts/download_l10n.sh",
16-
"shrink": "npmshrink && npm run postinstall",
16+
"shrink": "npmshrink && npm run postinstall && scripts/tls-shrink.sh",
1717
"start": "NODE_ENV=dev scripts/start-local.sh 2>&1",
1818
"start-mysql": "NODE_ENV=dev scripts/start-local-mysql.sh 2>&1",
1919
"test": "VERIFIER_VERSION=0 MEMCACHE_METRICS_CONTEXT_ADDRESS=none NO_COVERAGE=1 scripts/test-local.sh",

scripts/tls-shrink.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
sed -i '' 's/"resolved": "http:\/\/registry\.npmjs\.org\//"resolved": "https:\/\/registry.npmjs.org\//' npm-shrinkwrap.json

0 commit comments

Comments
 (0)