Skip to content

Commit

Permalink
fix: make internal npx invocation compatible with npm v6 (google#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub authored May 23, 2021
1 parent 1ab8c39 commit 31c97b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zx.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function importPath(filepath, origin = filepath) {
if (ext === '.ts') {
let {dir, name} = parse(filepath)
let outFile = join(dir, name + '.mjs')
await run`npx --yes tsc --target esnext --module esnext --moduleResolution node ${filepath}`
await run`npm_config_yes=true npx tsc --target esnext --module esnext --moduleResolution node ${filepath}`
await fs.rename(join(dir, name + '.js'), outFile)
let wait = importPath(outFile, filepath)
await fs.rm(outFile)
Expand Down

0 comments on commit 31c97b2

Please sign in to comment.