Skip to content

Commit

Permalink
Track Angular's server builder option (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 authored Dec 2, 2024
1 parent 0362c89 commit dbf502b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Empty file.
3 changes: 3 additions & 0 deletions packages/knip/src/plugins/angular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const resolveConfig: ResolveConfig<AngularCLIWorkspaceConfiguration> = async (co
if ('tsConfig' in opts && typeof opts.tsConfig === 'string') {
inputs.add(toConfig('typescript', opts.tsConfig, configFilePath));
}
if ('server' in opts && opts.server && typeof opts.server === 'string') {
inputs.add(toProductionEntry(join(cwd, opts.server)));
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/knip/test/plugins/angular2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('Find dependencies with the Angular plugin (2)', async () => {

assert.deepEqual(counters, {
...baseCounters,
processed: 2,
total: 2,
processed: 3,
total: 3,
});
});

0 comments on commit dbf502b

Please sign in to comment.