Skip to content

Commit

Permalink
fix(angular): checks for targets existence before attempting to itera…
Browse files Browse the repository at this point in the history
…te them (#13287)
  • Loading branch information
ccosmincc committed Nov 21, 2022
1 parent cd1e12a commit 328c547
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -16,6 +16,8 @@ function updateTarget(tree: Tree, tsconfigPath: string) {
export default async function updateTypescriptTarget(tree: Tree) {
const projects = getProjects(tree);
for (const [, project] of projects) {
if (!project.targets) continue;

for (const [, target] of Object.entries(project.targets)) {
// Update all other known CLI builders that use a tsconfig
const tsConfigs = [
Expand Down

0 comments on commit 328c547

Please sign in to comment.