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, {
|
addProjectConfiguration(host, options.e2eProjectName, {
|
||||||
root: options.e2eProjectRoot,
|
root: options.e2eProjectRoot,
|
||||||
implicitDependencies: [options.project],
|
implicitDependencies: [options.project],
|
||||||
|
projectType: 'application',
|
||||||
targets: {
|
targets: {
|
||||||
e2e: {
|
e2e: {
|
||||||
executor: '@nx/jest:jest',
|
executor: '@nx/jest:jest',
|
||||||
|
|||||||
@ -34,7 +34,7 @@ export function updateImports(
|
|||||||
schema: NormalizedSchema,
|
schema: NormalizedSchema,
|
||||||
project: ProjectConfiguration
|
project: ProjectConfiguration
|
||||||
) {
|
) {
|
||||||
if (project.projectType === 'application') {
|
if (project.projectType !== 'library') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user