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)

(cherry picked from commit 328c547)
  • Loading branch information
ccosmincc authored and FrozenPandaz committed Nov 28, 2022
1 parent fb2e47c commit 3ac2e8e
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 3ac2e8e

Please sign in to comment.