@npmcli/template-oss
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -18,3 +18,11 @@ const spawn = require('@npmcli/promise-spawn') | ||
const npm = (root, args) => { | ||
const env = {} | ||
for (const [key, value] of Object.entries(process.env)) { | ||
if (!key.startsWith('npm_')) { | ||
env[key] = value | ||
} | ||
} | ||
return spawn('npm', args, { | ||
env, | ||
cwd: root, | ||
@@ -21,0 +29,0 @@ stdioString: true, |
{ | ||
"name": "@npmcli/template-oss", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "templated files used in npm CLI team oss projects", | ||
@@ -43,3 +43,3 @@ "main": "lib/index.js", | ||
}, | ||
"templateVersion": "1.0.0" | ||
"templateVersion": "1.0.1" | ||
} |
10231
144
3