Skip to content

Commit

Permalink
fix(angular): support target-less projects in update-15-2-0 (#13755)
Browse files Browse the repository at this point in the history
  • Loading branch information
minijus committed Dec 13, 2022
1 parent f0b581d commit 9ac9491
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -11,15 +11,15 @@ export default async function updateWorkspaceConfigurations(tree: Tree) {

const supportedExecutors: Set<string> = new Set([Builders.Server]);
for (const [name, project] of projects) {
for (const [targetName, target] of Object.entries(project.targets)) {
for (const [targetName, target] of Object.entries(project.targets || {})) {
if (!supportedExecutors.has(target.executor)) {
continue;
}

target.options.bundleDependencies = undefined;

for (const [configurationName, configuration] of Object.entries(
target.configurations
target.configurations || {}
)) {
configuration.bundleDependencies = undefined;
target[configurationName] = configuration;
Expand Down

0 comments on commit 9ac9491

Please sign in to comment.