Skip to content

Commit 395840c

Browse files
committed
fixup! refactor: move baseUrl fallback logic to paths-plugin.ts
1 parent 6c91431 commit 395840c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/angular_devkit/build_angular/src/builders/browser/specs/tsconfig-paths_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ describe('Browser Builder tsconfig paths', () => {
4646
const tsconfig = JSON.parse(virtualFs.fileBufferToString(host.scopedSync().read(tsconfigPath)));
4747
tsconfig.compilerOptions ??= {};
4848
tsconfig.compilerOptions.paths = {
49-
'@shared': ['src/app/shared'],
50-
'@shared/*': ['src/app/shared/*'],
51-
'*': ['*', 'src/app/shared/*'],
49+
'@shared': ['./src/app/shared'],
50+
'@shared/*': ['./src/app/shared/*'],
51+
'*': ['*', './src/app/shared/*'],
5252
};
5353
host
5454
.scopedSync()

packages/angular_devkit/build_angular/src/builders/browser/tests/options/allowed-common-js-dependencies_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
122122
const tsconfig = JSON.parse(content);
123123
tsconfig.compilerOptions ??= {};
124124
tsconfig.compilerOptions.paths = {
125-
'@app/*': ['src/app/*'],
125+
'@app/*': ['./src/app/*'],
126126
};
127127

128128
return JSON.stringify(tsconfig, null, 2);

0 commit comments

Comments
 (0)