From 694eee88010c3ba6cf540e123a5c741bc0b28f8b Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sat, 9 Nov 2024 15:26:10 +0800 Subject: [PATCH] refactor: remove `baseUrl` from all TSConfig files Per the [official documentation](https://www.typescriptlang.org/tsconfig/#baseUrl): > This feature was designed for use in conjunction with AMD module loaders in the browser, and is not recommended in any other context. As of TypeScript 4.1, baseUrl is no longer required to be set when using paths. --- template/tsconfig/base/tsconfig.app.json | 1 - template/tsconfig/nightwatch-ct/tsconfig.app.json | 1 - 2 files changed, 2 deletions(-) diff --git a/template/tsconfig/base/tsconfig.app.json b/template/tsconfig/base/tsconfig.app.json index e14c754d..93f952f1 100644 --- a/template/tsconfig/base/tsconfig.app.json +++ b/template/tsconfig/base/tsconfig.app.json @@ -6,7 +6,6 @@ "composite": true, "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "baseUrl": ".", "paths": { "@/*": ["./src/*"] } diff --git a/template/tsconfig/nightwatch-ct/tsconfig.app.json b/template/tsconfig/nightwatch-ct/tsconfig.app.json index e14c754d..93f952f1 100644 --- a/template/tsconfig/nightwatch-ct/tsconfig.app.json +++ b/template/tsconfig/nightwatch-ct/tsconfig.app.json @@ -6,7 +6,6 @@ "composite": true, "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "baseUrl": ".", "paths": { "@/*": ["./src/*"] } -- 2.39.5