fix(node): explicitly check that project is a library before updating imports (#19040)

This commit is contained in:
Jack Hsu 2023-09-07 10:06:35 -04:00 committed by GitHub
parent b8bc4609e1
commit 214b53134d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -34,7 +34,7 @@ export function updateImports(
schema: NormalizedSchema,
project: ProjectConfiguration
) {
if (project.projectType === 'application') {
if (project.projectType !== 'library') {
return;
}