Skip to content

Commit

Permalink
fix: add empty targets in project.json when generating projects w…
Browse files Browse the repository at this point in the history
…ith inferred tasks
  • Loading branch information
tinesoft committed Jun 16, 2024
1 parent 8d5fd7f commit 88a6e8a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm format
pnpm affected:lint
pnpm affected:test
pnpm sync-preset-schemas
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function generateProjectConfiguration(
sourceRoot: joinPathFragments(options.projectRoot, 'src'),
...(!isNxCrystalEnabled()
? getProjectTypeAndTargetsFromOptions(options)
: {}),
: { targets: {} }),
tags: options.parsedTags,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function generateProjectConfiguration(
sourceRoot: joinPathFragments(options.projectRoot, 'src'),
...(!isNxCrystalEnabled()
? getProjectTypeAndTargetsFromOptions(options)
: {}),
: { targets: {} }),
tags: options.parsedTags,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function generateProjectConfiguration(
sourceRoot: joinPathFragments(options.projectRoot, 'src'),
...(!isNxCrystalEnabled()
? getProjectTypeAndTargetsFromOptions(options)
: {}),
: { targets: {} }),
tags: options.parsedTags,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function generateProjectConfiguration(
sourceRoot: joinPathFragments(options.projectRoot, 'src'),
...(!isNxCrystalEnabled()
? getProjectTypeAndTargetsFromOptions(options)
: {}),
: { targets: {} }),
tags: options.parsedTags,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function generateProjectConfiguration(
sourceRoot: joinPathFragments(options.projectRoot, 'src'),
...(!isNxCrystalEnabled()
? getProjectTypeAndTargetsFromOptions(options)
: {}),
: { targets: {} }),
tags: options.parsedTags,
});
}

0 comments on commit 88a6e8a

Please sign in to comment.