@@ -78,7 +78,7 @@ async function installAndMergePackage(pkgName, pkgVersion, options) {
7878 const hasOverride = existsSync ( overridePkgPath )
7979
8080 // Determine the final destination path.
81- // Packages with Socket overrides go to node_workspaces , others to node_modules.
81+ // Packages with Socket overrides go to test/npm/packages , others to test/npm/ node_modules.
8282 const finalPath = hasOverride
8383 ? path . join ( testNpmNodeWorkspacesPath , socketPkgName )
8484 : path . join ( testNpmNodeModulesPath , pkgName )
@@ -377,7 +377,7 @@ async function installMissingPackageTests(packageNames, options) {
377377 : origPkgName
378378 const hasOverride = existsSync ( path . join ( npmPackagesPath , socketPkgName ) )
379379
380- // Packages with overrides are in node_workspaces , others in node_modules.
380+ // Packages with overrides are in test/npm/packages , others in test/npm/ node_modules.
381381 const nmPkgPath = hasOverride
382382 ? path . join ( testNpmNodeWorkspacesPath , socketPkgName )
383383 : path . join ( testNpmNodeModulesPath , origPkgName )
@@ -464,7 +464,7 @@ async function resolveDevDependencies(packageNames, options) {
464464 const missingPackages = packageNames . filter ( sockRegPkgName => {
465465 const origPkgName = resolveOriginalPackageName ( sockRegPkgName )
466466 // Missing packages can occur if the script is stopped part way through.
467- // Check both node_modules and node_workspaces locations.
467+ // Check both node_modules and test/npm/packages locations.
468468 const hasOverride = existsSync ( path . join ( npmPackagesPath , sockRegPkgName ) )
469469 const pkgPath = hasOverride
470470 ? path . join ( testNpmNodeWorkspacesPath , sockRegPkgName )
@@ -555,7 +555,7 @@ async function linkPackages(packageNames, options) {
555555 return
556556 }
557557
558- // Check if it's already a symlink to node_workspaces (already processed).
558+ // Check if it's already a symlink to test/npm/packages (already processed).
559559 if ( isSymLinkSync ( nmPkgPath ) ) {
560560 const realPath = realpathSync ( nmPkgPath )
561561 if ( realPath === path . join ( testNpmNodeWorkspacesPath , sockRegPkgName ) ) {
@@ -737,7 +737,7 @@ async function linkPackages(packageNames, options) {
737737
738738async function cleanupNodeWorkspaces ( linkedPackageNames , options ) {
739739 // Cleanup up override packages and move them from
740- // test/npm/node_modules/ to test/npm/node_workspaces/
740+ // test/npm/node_modules to test/npm/packages
741741 const { spinner } = { __proto__ : null , ...options }
742742 spinner ?. start ( `Cleaning up ${ relTestNpmPath } workspaces...` )
743743
@@ -784,7 +784,7 @@ async function cleanupNodeWorkspaces(linkedPackageNames, options) {
784784 // Fallback to fs.rm if trash fails (e.g., for .github directories on macOS).
785785 await safeRemove ( unnecessaryPaths , { spinner } )
786786 }
787- // Move override package from test/npm/node_modules/ to test/npm/node_workspaces/
787+ // Move override package from test/npm/node_modules to test/npm/packages
788788 await move ( srcPath , destPath , { overwrite : true } )
789789 } ,
790790 { concurrency : DEFAULT_CONCURRENCY }
0 commit comments