Skip to content

Commit

Permalink
fix(angular): use helper to import @angular/compiler-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Nov 8, 2023
1 parent 630e750 commit a1549d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/src/executors/package/package.impl.spec.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/src/executors/utilities/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1549d9

Please sign in to comment.