Skip to content

Commit dbf502b

Browse files
authoredDec 2, 2024
Track Angular's server builder option (#865)
1 parent 0362c89 commit dbf502b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎packages/knip/fixtures/plugins/angular2/src/main.server.ts

Whitespace-only changes.

‎packages/knip/src/plugins/angular/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ const resolveConfig: ResolveConfig<AngularCLIWorkspaceConfiguration> = async (co
4444
if ('tsConfig' in opts && typeof opts.tsConfig === 'string') {
4545
inputs.add(toConfig('typescript', opts.tsConfig, configFilePath));
4646
}
47+
if ('server' in opts && opts.server && typeof opts.server === 'string') {
48+
inputs.add(toProductionEntry(join(cwd, opts.server)));
49+
}
4750
}
4851
}
4952
}

‎packages/knip/test/plugins/angular2.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('Find dependencies with the Angular plugin (2)', async () => {
1515

1616
assert.deepEqual(counters, {
1717
...baseCounters,
18-
processed: 2,
19-
total: 2,
18+
processed: 3,
19+
total: 3,
2020
});
2121
});

0 commit comments

Comments
 (0)