Skip to content

Commit

Permalink
fix(plugin-workspaces-export): include packageManager field in export…
Browse files Browse the repository at this point in the history
…ed project
  • Loading branch information
kherock committed Mar 9, 2022
1 parent a951aff commit 45a232d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-workspaces-export/sources/commands/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export default class WorkspacesExportCommand extends BaseCommand {
nodeLinker,
packageExtensions: tmpConfiguration.get(`packageExtensions`),
});
await this.cli.run([`set`, `version`, `self`], {...mainContext, cwd: cacheDir, quiet: true});

await tmpConfiguration.refreshPackageExtensions();

Expand All @@ -237,6 +238,7 @@ export default class WorkspacesExportCommand extends BaseCommand {
if (!tmpWorkspace)
throw new WorkspaceRequiredError(tmpProject.cwd, cacheDir);

tmpWorkspace.manifest.packageManager = project.topLevelWorkspace.manifest.packageManager;
tmpWorkspace.manifest.resolutions = project.topLevelWorkspace.manifest.resolutions;
tmpWorkspace.manifest.workspaceDefinitions = [{pattern: `.yarn/bundled/*`}];

Expand Down

0 comments on commit 45a232d

Please sign in to comment.