Skip to content

Commit 329407a

Browse files
authored
Merge pull request #4 from proxymesh/test-all-modules-and-fix-failures
fix: allow npm publish dry-run without proxy env
2 parents ffb8213 + 992238e commit 329407a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"test": "node test/test_proxy_headers.js core axios node-fetch got undici superagent",
4343
"test:verbose": "node test/test_proxy_headers.js -v",
4444
"lint": "eslint lib test",
45+
"prepublishOnly": "node -e \"const p=process.env.PROXY_URL||process.env.HTTPS_PROXY||process.env.https_proxy; if(!p){console.log('prepublishOnly: skipping proxy tests (set PROXY_URL/HTTPS_PROXY to enable)'); process.exit(0);} require('child_process').execSync('npm test',{stdio:'inherit'});\""
4546
},
4647
"keywords": [
4748
"proxy",
@@ -95,6 +96,7 @@
9596
},
9697
"devDependencies": {
9798
"axios": "^1.7.0",
99+
"eslint": "^9.0.0",
98100
"got": "^14.4.0",
99101
"node-fetch": "^3.3.0",
100102
"superagent": "^10.1.0",

0 commit comments

Comments
 (0)