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
  • Loading branch information
jaysoo committed Sep 6, 2023
1 parent 9ba98f4 commit 027bdcd
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 027bdcd

Please sign in to comment.