Skip to content

Commit 0dc354b

Browse files
authored
chore: Upgrade to pnpm 10.x (#92283)
This will let us potentially use https://pnpm.io/settings#minimumreleaseage
1 parent f065bf5 commit 0dc354b

14 files changed

Lines changed: 580 additions & 461 deletions

File tree

.github/actions/next-integration-stat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"engines": {
2424
"node": ">=20.9.0"
2525
},
26-
"packageManager": "pnpm@9.6.0"
26+
"packageManager": "pnpm@10.33.0"
2727
}

.github/actions/next-stats-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"engines": {
2222
"node": ">=20.9.0"
2323
},
24-
"packageManager": "pnpm@9.6.0"
24+
"packageManager": "pnpm@10.33.0"
2525
}

.github/actions/next-stats-action/src/prepare/repo-setup.js

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -245,38 +245,28 @@ module.exports = (actionInfo) => {
245245
}
246246
}
247247

248-
const options = {
249-
cwd: pkgPath,
250-
env: {
251-
...process.env,
252-
COREPACK_ENABLE_STRICT: '0',
253-
},
254-
}
255-
let execResult
248+
const pnpmPackExeca = () =>
249+
execa('pnpm', ['pack', '--out', packedPkgPath], {
250+
cwd: pkgPath,
251+
env: {
252+
...process.env,
253+
COREPACK_ENABLE_STRICT: '0',
254+
},
255+
})
256+
256257
try {
257-
execResult = await handlePackageSpan
258+
await handlePackageSpan
258259
.traceChild('pnpm-pack-try-1')
259-
.traceAsyncFn(() => execa('pnpm', ['pack'], options))
260+
.traceAsyncFn(pnpmPackExeca)
260261
} catch {
261-
execResult = await handlePackageSpan
262+
await handlePackageSpan
262263
.traceChild('pnpm-pack-try-2')
263-
.traceAsyncFn(() => execa('pnpm', ['pack'], options))
264+
.traceAsyncFn(pnpmPackExeca)
264265
}
265-
const { stdout } = execResult
266-
267-
const packedFileName = stdout.trim()
268266

269267
await handlePackageSpan
270-
.traceChild('rename-packed-tar-and-cleanup')
271-
.traceAsyncFn(() =>
272-
Promise.all([
273-
fs.promises.rename(
274-
path.join(pkgPath, packedFileName),
275-
packedPkgPath
276-
),
277-
cleanup?.(),
278-
])
279-
)
268+
.traceChild('cleanup')
269+
.traceAsyncFn(() => cleanup?.())
280270
})
281271
}
282272
)

.github/actions/upload-turboyet-data/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"engines": {
1515
"node": ">=20.9.0"
1616
},
17-
"packageManager": "pnpm@9.6.0"
17+
"packageManager": "pnpm@10.33.0"
1818
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@
315315
},
316316
"engines": {
317317
"node": ">=20.9.0",
318-
"pnpm": "9.6.0"
318+
"pnpm": "10.33.0"
319319
},
320-
"packageManager": "pnpm@9.6.0",
320+
"packageManager": "pnpm@10.33.0",
321321
"pnpm": {
322322
"overrides": {
323323
"webpack": "5.98.0",

packages/next/src/compiled/http-proxy/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/next/src/compiled/sass-loader/cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/next/src/compiled/webpack-sources3/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)