We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcf88ed commit 3f8477dCopy full SHA for 3f8477d
scripts/get-unowned-packages/index.js
@@ -8,7 +8,8 @@ const { exec, execSync } = require(`child_process`)
8
const execP = util.promisify(exec)
9
10
const getPackagesWithReadWriteAccess = async user => {
11
- const cmd = `npm access ls-packages ${user}`
+ // Requires npm 9.0.0 or higher
12
+ const cmd = `npm access list packages ${user} --json`
13
const { stdout } = await execP(cmd)
14
const permissions = JSON.parse(stdout)
15
return Object.entries(permissions).reduce((lookup, [pkgName, access]) => {
0 commit comments