From 3bdb0af993482a7ad6dbfa4fef82876f3e880998 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Fri, 5 Aug 2022 20:23:45 +0100 Subject: [PATCH] fix: intellisense imports defaulting to absolute path from `src` folder (#3549) * docs: remove baseUrl recommendation Fixes https://github.com/flarum/flarum-tsconfig/issues/4 * chore: implement change within framework monorepo --- extensions/akismet/js/tsconfig.json | 1 - extensions/flags/js/tsconfig.json | 1 - extensions/package-manager/js/tsconfig.json | 1 - extensions/pusher/js/tsconfig.json | 1 - extensions/statistics/js/tsconfig.json | 1 - extensions/tags/js/tsconfig.json | 1 - js-packages/tsconfig/README.md | 1 - 7 files changed, 7 deletions(-) diff --git a/extensions/akismet/js/tsconfig.json b/extensions/akismet/js/tsconfig.json index 510f42a00..6557cdb2c 100644 --- a/extensions/akismet/js/tsconfig.json +++ b/extensions/akismet/js/tsconfig.json @@ -8,7 +8,6 @@ "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"], "flarum/flags/*": ["../vendor/flarum/flags/js/dist-typings/*"] diff --git a/extensions/flags/js/tsconfig.json b/extensions/flags/js/tsconfig.json index c24c74031..2df54a938 100644 --- a/extensions/flags/js/tsconfig.json +++ b/extensions/flags/js/tsconfig.json @@ -8,7 +8,6 @@ "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"], "@flarum/core/*": ["../vendor/flarum/core/js/dist-typings/*"] diff --git a/extensions/package-manager/js/tsconfig.json b/extensions/package-manager/js/tsconfig.json index 5517519cd..109e7d2b3 100755 --- a/extensions/package-manager/js/tsconfig.json +++ b/extensions/package-manager/js/tsconfig.json @@ -9,7 +9,6 @@ "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"] } diff --git a/extensions/pusher/js/tsconfig.json b/extensions/pusher/js/tsconfig.json index 5fe83152f..52dfd8541 100644 --- a/extensions/pusher/js/tsconfig.json +++ b/extensions/pusher/js/tsconfig.json @@ -8,7 +8,6 @@ "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"], "flarum/tags/*": ["../vendor/flarum/tags/js/dist-typings/*"] diff --git a/extensions/statistics/js/tsconfig.json b/extensions/statistics/js/tsconfig.json index ee0d5ef5a..fc2557c69 100644 --- a/extensions/statistics/js/tsconfig.json +++ b/extensions/statistics/js/tsconfig.json @@ -8,7 +8,6 @@ "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"] } diff --git a/extensions/tags/js/tsconfig.json b/extensions/tags/js/tsconfig.json index 161d73aa0..5e95cffa2 100644 --- a/extensions/tags/js/tsconfig.json +++ b/extensions/tags/js/tsconfig.json @@ -8,7 +8,6 @@ "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"], // TODO: remove after export registry system implemented diff --git a/js-packages/tsconfig/README.md b/js-packages/tsconfig/README.md index 1416fac50..cc34652ff 100644 --- a/js-packages/tsconfig/README.md +++ b/js-packages/tsconfig/README.md @@ -26,7 +26,6 @@ A baseline `tsconfig.json` is provided below that you can modify as needed. This "compilerOptions": { // This will output typings to `dist-typings` "declarationDir": "./dist-typings", - "baseUrl": ".", "paths": { "flarum/*": ["../vendor/flarum/core/js/dist-typings/*"] }