Skip to content

Commit 9208213

Browse files
committed
rebuild: include prefix when filtering with --only
The logic currently ignores a module prefix when filtering packages passed via `--only=`. This is quite confusing: to only rebuild something like `@theia/node-pty` we must pass `--only=node-pty`. This commit adds a lookup using the prefixed name.
1 parent 26cae3d commit 9208213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rebuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export class Rebuilder {
324324
}
325325
this.realModulePaths.add(realPath);
326326

327-
if (this.prodDeps[`${prefix}${modulePath}`] && (!this.onlyModules || this.onlyModules.includes(modulePath))) {
327+
if (this.prodDeps[`${prefix}${modulePath}`] && (!this.onlyModules || this.onlyModules.includes(modulePath) || this.onlyModules.includes(`${prefix}${modulePath}`))) {
328328
this.rebuilds.push(() => this.rebuildModuleAt(realPath));
329329
}
330330

0 commit comments

Comments
 (0)