Skip to content

Commit

Permalink
Review#1: move isDevOnly check to getDistPackagesFromRepo.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Jan 12, 2024
1 parent 8294235 commit f979aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dev/build/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class Config {
return getPackages(this.repoRoot).filter(
(p) =>
(this.pluginSelector.testPlugins || !p.isDevOnly()) &&
(!p.isPlugin() || this.pluginFilter(p))
(!p.isPlugin() || (this.pluginFilter(p) && !p.isDevOnly()))
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/dev/build/tasks/build_packages_task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export const BuildPackages: Task = {
Path.resolve(pkgDistPath, 'package-map.json'),
JSON.stringify(
packages
.filter((p) => p.isPlugin() && !p.isDevOnly())
.filter((p) => p.isPlugin())
.map((p) => [p.manifest.id, `node_modules/${p.manifest.id}`])
)
);
Expand Down

0 comments on commit f979aa7

Please sign in to comment.