Skip to content

Commit

Permalink
feat: pass enableModulesDir to pnpm (#8913)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan authored May 24, 2024
1 parent 629f602 commit 6beefb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scopes/dependencies/dependency-resolver/package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export type PackageManagerInstallOptions = {

lockfileOnly?: boolean;

/**
* When false, the package manager will not write the node_modules directory
*/
enableModulesDir?: boolean;

nodeLinker?: 'hoisted' | 'isolated';

packageManagerConfigRootDir?: string;
Expand Down
1 change: 1 addition & 0 deletions scopes/dependencies/pnpm/lynx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export async function install(
| 'hoistPattern'
| 'lockfileOnly'
| 'nodeVersion'
| 'enableModulesDir'
| 'engineStrict'
| 'excludeLinksFromLockfile'
| 'neverBuiltDependencies'
Expand Down
1 change: 1 addition & 0 deletions scopes/dependencies/pnpm/pnpm.package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class PnpmPackageManager implements PackageManager {
networkConfig,
{
autoInstallPeers: installOptions.autoInstallPeers ?? false,
enableModulesDir: installOptions.enableModulesDir,
engineStrict: installOptions.engineStrict ?? config.engineStrict,
excludeLinksFromLockfile: installOptions.excludeLinksFromLockfile,
lockfileOnly: installOptions.lockfileOnly,
Expand Down

0 comments on commit 6beefb7

Please sign in to comment.