Skip to content

Commit

Permalink
fix(node): explicitly check that project is a library before updating…
Browse files Browse the repository at this point in the history
… imports (#19040)
  • Loading branch information
jaysoo authored Sep 7, 2023
1 parent b8bc460 commit 214b531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/node/src/generators/e2e-project/e2e-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export async function e2eProjectGeneratorInternal(
addProjectConfiguration(host, options.e2eProjectName, {
root: options.e2eProjectRoot,
implicitDependencies: [options.project],
projectType: 'application',
targets: {
e2e: {
executor: '@nx/jest:jest',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function updateImports(
schema: NormalizedSchema,
project: ProjectConfiguration
) {
if (project.projectType === 'application') {
if (project.projectType !== 'library') {
return;
}

Expand Down

0 comments on commit 214b531

Please sign in to comment.