Skip to content

Commit ad652fe

Browse files
committed
Address comments
1 parent d5c664b commit ad652fe

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

‎pnpm-workspace.yaml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ packages:
66
- 'turbopack/crates/*/js'
77
- 'turbopack/crates/turbopack-tests/tests/execution'
88
updateNotifier: false
9-
autoInstallPeers: true
109
linkWorkspacePackages: true
1110
saveExact: true
12-
strictPeerDependencies: false
1311
provenance: true
1412
tagVersionPrefix: ''
1513
# pnpm 11+ defaults this to `install`, which makes `pnpm run` (including the
1614
# script invocations turbo makes) install dependencies first if it considers
1715
# them stale. CI jobs that only run Rust tasks intentionally skip the install.
16+
# TODO: Fix the CI jobs, and remove this line.
1817
verifyDepsBeforeRun: false
1918
publicHoistPattern:
2019
- '*eslint*'
@@ -63,7 +62,8 @@ minimumReleaseAgeExclude:
6362
- scheduler
6463
- turbo
6564

66-
# `file://./scripts/sync-react.js` updates the React entries in place.
65+
# Caution: `file://./scripts/sync-react.js` updates the React entries in place using a regex as part
66+
# of a GH Action. If you update this section, make sure you also update that script.
6767
overrides:
6868
postcss: 8.5.23
6969
webpack: 5.98.0
@@ -82,10 +82,12 @@ overrides:
8282
react-dom: 'npm:react-dom@19.3.0-canary-b618bbb4-20261007'
8383
react-is: 'npm:react-is@19.3.0-canary-b618bbb4-20261007'
8484
scheduler: 'npm:scheduler@0.28.0-canary-b618bbb4-20261007'
85+
8586
packageExtensions:
8687
eslint-plugin-react-hooks@0.0.0-experimental-6de32a5a-20250822:
8788
dependencies:
8889
'@babel/plugin-proposal-private-methods': ^7.18.6
90+
8991
patchedDependencies:
9092
webpack-sources@3.2.3: patches/webpack-sources@3.2.3.patch
9193
stacktrace-parser@0.1.10: patches/stacktrace-parser@0.1.10.patch

‎test/lib/next-modes/base.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,16 +1126,16 @@ export class NextInstance {
11261126
patchedContent = content
11271127
}
11281128

1129-
let originalPath: string | undefined
1129+
let backupPath: string | undefined
11301130
if (!newFile && runWithTempContent) {
1131-
originalPath = `${outputPath}.${randomBytes(4).toString('hex')}.bak`
1131+
backupPath = `${outputPath}.${randomBytes(4).toString('hex')}.bak`
11321132
}
11331133

11341134
// Never modify files in place: pnpm installs hard links, so a patch could
11351135
// corrupt its shared store and affect other fixtures. Keep the original
11361136
// inode for temporary patches and write the replacement as a new file.
1137-
if (originalPath) {
1138-
renameSync(outputPath, originalPath)
1137+
if (backupPath) {
1138+
renameSync(outputPath, backupPath)
11391139
} else if (!newFile) {
11401140
rmSync(outputPath, { force: true })
11411141
}
@@ -1151,8 +1151,8 @@ export class NextInstance {
11511151
} finally {
11521152
if (runWithTempContent) {
11531153
rmSync(outputPath, { force: true })
1154-
if (originalPath) {
1155-
renameSync(originalPath, outputPath)
1154+
if (backupPath) {
1155+
renameSync(backupPath, outputPath)
11561156
}
11571157
}
11581158
}

‎test/production/app-dir/typescript-cli/.npmrc‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎test/production/app-dir/typescript-cli/pnpm-workspace.yaml‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)