diff --git a/packages/angular/src/executors/ng-packagr-lite/ng-packagr-lite.impl.spec.ts b/packages/angular/src/executors/ng-packagr-lite/ng-packagr-lite.impl.spec.ts index 216cc52c90f93..fa2ebb8fd6c79 100644 --- a/packages/angular/src/executors/ng-packagr-lite/ng-packagr-lite.impl.spec.ts +++ b/packages/angular/src/executors/ng-packagr-lite/ng-packagr-lite.impl.spec.ts @@ -1,15 +1,15 @@ jest.mock('@nx/devkit'); jest.mock('@nx/js/src/utils/buildable-libs-utils'); jest.mock('ng-packagr'); -jest.mock('ng-packagr/lib/utils/ng-compiler-cli'); +jest.mock('../utilities/ng-compiler-cli'); jest.mock('./ng-packagr-adjustments/ng-package/options.di'); import type { ExecutorContext } from '@nx/devkit'; import * as buildableLibsUtils from '@nx/js/src/utils/buildable-libs-utils'; import * as ngPackagr from 'ng-packagr'; -import { ngCompilerCli } from 'ng-packagr/lib/utils/ng-compiler-cli'; import { BehaviorSubject } from 'rxjs'; import type { BuildAngularLibraryExecutorOptions } from '../package/schema'; +import { ngCompilerCli } from '../utilities/ng-compiler-cli'; import { NX_ENTRY_POINT_PROVIDERS } from './ng-packagr-adjustments/ng-package/entry-point/entry-point.di'; import { nxProvideOptions } from './ng-packagr-adjustments/ng-package/options.di'; import { diff --git a/packages/angular/src/executors/package/package.impl.spec.ts b/packages/angular/src/executors/package/package.impl.spec.ts index 384c58e4ebe2c..a32ad38c9b775 100644 --- a/packages/angular/src/executors/package/package.impl.spec.ts +++ b/packages/angular/src/executors/package/package.impl.spec.ts @@ -1,14 +1,14 @@ jest.mock('@nx/devkit'); jest.mock('@nx/js/src/utils/buildable-libs-utils'); jest.mock('ng-packagr'); -jest.mock('ng-packagr/lib/utils/ng-compiler-cli'); +jest.mock('../utilities/ng-compiler-cli'); jest.mock('./ng-packagr-adjustments/ng-package/options.di'); import type { ExecutorContext } from '@nx/devkit'; import * as buildableLibsUtils from '@nx/js/src/utils/buildable-libs-utils'; import * as ngPackagr from 'ng-packagr'; -import { ngCompilerCli } from 'ng-packagr/lib/utils/ng-compiler-cli'; import { BehaviorSubject } from 'rxjs'; +import { ngCompilerCli } from '../utilities/ng-compiler-cli'; import { NX_ENTRY_POINT_PROVIDERS } from './ng-packagr-adjustments/ng-package/entry-point/entry-point.di'; import { nxProvideOptions } from './ng-packagr-adjustments/ng-package/options.di'; import { diff --git a/packages/angular/src/executors/utilities/typescript.ts b/packages/angular/src/executors/utilities/typescript.ts index 19c0ff12cc4cf..f675b56df7eb5 100644 --- a/packages/angular/src/executors/utilities/typescript.ts +++ b/packages/angular/src/executors/utilities/typescript.ts @@ -11,9 +11,9 @@ import type { CompilerOptions, ParsedConfiguration, } from '@angular/compiler-cli'; -import { ngCompilerCli } from 'ng-packagr/lib/utils/ng-compiler-cli'; import { resolve } from 'path'; import * as ts from 'typescript'; +import { ngCompilerCli } from './ng-compiler-cli'; async function readDefaultTsConfig( fileName: string