Skip to content

Commit de87bd2

Browse files
committed
cleanup
1 parent f9d161f commit de87bd2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/npm.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,14 @@ class Npm {
6666
} = {}) {
6767
this.#display = new Display({ stdout, stderr })
6868
this.#npmRoot = npmRoot
69-
this.#argv = argv
70-
this.#excludeNpmCwd = excludeNpmCwd
7169
this.config = new Config({
7270
npmPath: this.#npmRoot,
7371
definitions: globalDefinitions,
7472
flatten,
7573
nerfDarts,
7674
shorthands,
77-
argv: [...process.argv, ...this.#argv],
78-
excludeNpmCwd: this.#excludeNpmCwd,
75+
argv: [...process.argv, ...argv],
76+
excludeNpmCwd,
7977
})
8078
}
8179

@@ -335,7 +333,7 @@ class Npm {
335333
...opts,
336334
})
337335

338-
const { writeFileSync, glob } = require('node:fs')
336+
const { writeFileSync } = require('node:fs')
339337
for (const [file, content] of files) {
340338
const filePath = `${this.logPath}${file}`
341339
const fileContent = `'Log files:\n${this.logFiles.join('\n')}\n\n${content.trim()}\n`

0 commit comments

Comments
 (0)