fix(node): explicitly check that project is a library before updating imports (#19040)
This commit is contained in:
parent
b8bc4609e1
commit
214b53134d
@ -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',
|
||||
|
||||
@ -34,7 +34,7 @@ export function updateImports(
|
||||
schema: NormalizedSchema,
|
||||
project: ProjectConfiguration
|
||||
) {
|
||||
if (project.projectType === 'application') {
|
||||
if (project.projectType !== 'library') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user