Skip to content

Commit

Permalink
chore(dep): update @types/node (#7414)
Browse files Browse the repository at this point in the history
* chore(dep): update @types/node

* chore: update
  • Loading branch information
btea authored Dec 13, 2023
1 parent 0830a73 commit e79ab38
Show file tree
Hide file tree
Showing 12 changed files with 119 additions and 85 deletions.
2 changes: 1 addition & 1 deletion __utils__/assert-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@pnpm/assert-project": "workspace:*",
"@types/is-windows": "^1.0.2",
"@types/isexe": "2.0.2",
"@types/node": "^16.18.61"
"@types/node": "^18.14.6"
},
"directories": {
"test": "test"
Expand Down
2 changes: 1 addition & 1 deletion __utils__/prepare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@pnpm/prepare": "workspace:*",
"@types/node": "^16.18.61"
"@types/node": "^18.14.6"
},
"scripts": {
"lint": "eslint src/**/*.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const defaults = async (opts: RebuildOptions) => {
unsafePerm: process.platform === 'win32' ||
process.platform === 'cygwin' ||
!process.setgid ||
process.getuid() !== 0,
process.getuid?.() !== 0,
useLockfile: true,
userAgent: `${packageManager.name}/${packageManager.version} npm/? node/${process.version} ${process.platform} ${process.arch}`,
} as StrictRebuildOptions
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@pnpm/tsconfig": "workspace:*",
"@pnpm/worker": "workspace:*",
"@types/jest": "^29.5.8",
"@types/node": "^16.18.61",
"@types/node": "^18.14.6",
"c8": "^7.14.0",
"concurrently": "8.2.1",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion pkg-manager/core/src/install/extendInstallOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const defaults = (opts: InstallOptions) => {
unsafePerm: process.platform === 'win32' ||
process.platform === 'cygwin' ||
!process.setgid ||
process.getuid() !== 0,
process.getuid?.() !== 0,
useLockfile: true,
saveLockfile: true,
useGitBranchLockfile: false,
Expand Down
2 changes: 1 addition & 1 deletion pkg-manager/link-bins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@pnpm/link-bins": "workspace:*",
"@pnpm/test-fixtures": "workspace:*",
"@types/is-windows": "^1.0.2",
"@types/node": "^16.18.61",
"@types/node": "^18.14.6",
"@types/normalize-path": "^3.0.2",
"@types/ramda": "0.28.20",
"cmd-extension": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion pkg-manager/package-bins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@pnpm/package-bins": "workspace:*",
"@types/node": "^16.18.61"
"@types/node": "^18.14.6"
},
"funding": "https://opencollective.com/pnpm",
"exports": {
Expand Down
1 change: 0 additions & 1 deletion pkg-manager/package-requester/src/packageRequester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export function createPackageRequester (
// A lower bound of 16 is enforced to prevent performance degradation,
// especially in CI environments. Tests with a threshold lower than 16
// have shown consistent underperformance.
// @ts-expect-error - `availableParallelism` is not exist until update @types/node to v18.14.5
const networkConcurrency = opts.networkConcurrency ?? Math.max(os.availableParallelism?.() ?? os.cpus().length, 16)
const requestsQueue = new PQueue({
concurrency: networkConcurrency,
Expand Down
Loading

0 comments on commit e79ab38

Please sign in to comment.