Skip to content

Commit 58065bc

Browse files
nlflukekarrys
authored andcommitted
feat: do not alter file ownership
BREAKING CHANGE: this package no longer attempts to change file ownership automatically
1 parent 475e9b6 commit 58065bc

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

DEPENDENCIES.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ graph LR;
544544
libnpmexec-->bin-links;
545545
libnpmexec-->chalk;
546546
libnpmexec-->minify-registry-metadata;
547-
libnpmexec-->mkdirp-infer-owner;
548547
libnpmexec-->mkdirp;
549548
libnpmexec-->npm-package-arg;
550549
libnpmexec-->npmcli-arborist["@npmcli/arborist"];

package-lock.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13862,7 +13862,6 @@
1386213862
"@npmcli/fs": "^2.1.1",
1386313863
"@npmcli/run-script": "^4.2.0",
1386413864
"chalk": "^4.1.0",
13865-
"mkdirp-infer-owner": "^2.0.0",
1386613865
"npm-package-arg": "^9.0.1",
1386713866
"npmlog": "^6.0.2",
1386813867
"pacote": "^14.0.0",

workspaces/libnpmexec/lib/file-exists.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const { resolve } = require('path')
2-
const fs = require('@npmcli/fs')
2+
const { stat } = require('fs/promises')
33
const walkUp = require('walk-up-path')
44

55
const fileExists = async (file) => {
66
try {
7-
const res = await fs.stat(file)
7+
const res = await stat(file)
88
return res.isFile()
99
} catch {
1010
return false

workspaces/libnpmexec/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict'
22

3+
const { mkdir } = require('fs/promises')
34
const { promisify } = require('util')
45

56
const Arborist = require('@npmcli/arborist')
67
const ciDetect = require('@npmcli/ci-detect')
78
const crypto = require('crypto')
89
const log = require('proc-log')
9-
const mkdirp = require('mkdirp-infer-owner')
1010
const npa = require('npm-package-arg')
1111
const npmlog = require('npmlog')
1212
const pacote = require('pacote')
@@ -205,7 +205,7 @@ const exec = async (opts) => {
205205
.digest('hex')
206206
.slice(0, 16)
207207
const installDir = resolve(npxCache, hash)
208-
await mkdirp(installDir)
208+
await mkdir(installDir, { recursive: true })
209209
const npxArb = new Arborist({
210210
...flatOptions,
211211
path: installDir,

workspaces/libnpmexec/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"@npmcli/fs": "^2.1.1",
6464
"@npmcli/run-script": "^4.2.0",
6565
"chalk": "^4.1.0",
66-
"mkdirp-infer-owner": "^2.0.0",
6766
"npm-package-arg": "^9.0.1",
6867
"npmlog": "^6.0.2",
6968
"pacote": "^14.0.0",

0 commit comments

Comments
 (0)