Skip to content

Commit 0fd1646

Browse files
committed
refactor(@angular/build): adjust compiler-cli namespace import
Updates the type import for `@angular/compiler-cli` from a default import (`import type ng from ...`) to a full namespace import (`import type * as ng from ...`) across the Angular build tooling. This change ensures consistent and correct type resolution, aligning with modern TypeScript module standards and preventing potential import resolution issues.
1 parent 89e8171 commit 0fd1646

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/angular/build/src/tools/angular/angular-host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type ng from '@angular/compiler-cli';
9+
import type * as ng from '@angular/compiler-cli';
1010
import assert from 'node:assert';
1111
import { createHash } from 'node:crypto';
1212
import nodePath from 'node:path';

packages/angular/build/src/tools/angular/compilation/angular-compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type ng from '@angular/compiler-cli';
9+
import type * as ng from '@angular/compiler-cli';
1010
import type { PartialMessage } from 'esbuild';
1111
import type ts from 'typescript';
1212
import { convertTypeScriptDiagnostic } from '../../esbuild/angular/diagnostics';

packages/angular/build/src/tools/angular/compilation/aot-compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type ng from '@angular/compiler-cli';
9+
import type * as ng from '@angular/compiler-cli';
1010
import assert from 'node:assert';
1111
import { relative } from 'node:path';
1212
import ts from 'typescript';

packages/angular/build/src/tools/angular/compilation/hmr-candidates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type ng from '@angular/compiler-cli';
9+
import type * as ng from '@angular/compiler-cli';
1010
import assert from 'node:assert';
1111
import ts from 'typescript';
1212

packages/angular/build/src/tools/angular/compilation/jit-compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type ng from '@angular/compiler-cli';
9+
import type * as ng from '@angular/compiler-cli';
1010
import assert from 'node:assert';
1111
import ts from 'typescript';
1212
import { profileSync } from '../../esbuild/profiling';

packages/angular/build/src/tools/angular/compilation/noop-compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import type ng from '@angular/compiler-cli';
9+
import type * as ng from '@angular/compiler-cli';
1010
import type ts from 'typescript';
1111
import { AngularHostOptions } from '../angular-host';
1212
import { AngularCompilation } from './angular-compilation';

0 commit comments

Comments
 (0)