@@ -166,7 +166,7 @@ export class RushPnpmCommandLineParser {
166166 this . _subspace = subspace ;
167167
168168 const workspaceFolder : string = subspace . getSubspaceTempFolderPath ( ) ;
169- const workspaceFilePath : string = path . join ( workspaceFolder , 'pnpm-workspace.yaml' ) ;
169+ const workspaceFilePath : string = ` ${ workspaceFolder } / ${ RushConstants . pnpmWorkspaceFileName } ` ;
170170
171171 if ( ! FileSystem . exists ( workspaceFilePath ) ) {
172172 this . _terminal . writeErrorLine ( 'Error: The PNPM workspace file has not been generated:' ) ;
@@ -546,7 +546,7 @@ export class RushPnpmCommandLineParser {
546546 if ( semver . gte ( pnpmVersion , '11.0.0' ) ) {
547547 // PNPM 11+ stores patchedDependencies in pnpm-workspace.yaml instead of the package.json "pnpm" field
548548 newGlobalPatchedDependencies = await PnpmWorkspaceFile . loadPatchedDependenciesAsync (
549- `${ subspaceTempFolder } /pnpm-workspace.yaml `
549+ `${ subspaceTempFolder } /${ RushConstants . pnpmWorkspaceFileName } `
550550 ) ;
551551 } else {
552552 // PNPM 10.x and earlier store patchedDependencies in the package.json "pnpm" field
@@ -612,7 +612,7 @@ export class RushPnpmCommandLineParser {
612612
613613 if ( semver . gte ( pnpmVersion , '11.0.0' ) ) {
614614 // PNPM 11+ uses allowBuilds in pnpm-workspace.yaml instead of onlyBuiltDependencies in package.json
615- const workspaceYamlFilename : string = `${ subspaceTempFolder } /pnpm-workspace.yaml ` ;
615+ const workspaceYamlFilename : string = `${ subspaceTempFolder } /${ RushConstants . pnpmWorkspaceFileName } ` ;
616616 const yamlModule : typeof import ( 'js-yaml' ) = await import ( 'js-yaml' ) ;
617617 const workspaceYamlContent : string = await FileSystem . readFileAsync ( workspaceYamlFilename ) ;
618618 const workspaceYaml : { allowBuilds ?: Record < string , boolean > } = ( yamlModule . load (
0 commit comments