From 633ce95dd0c44813ede0b85ff7626c5a2cbc9ad5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 24 Dec 2024 09:50:43 +0100 Subject: [PATCH 1/4] Fix IDE errors in frontend-core --- packages/frontend-core/tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend-core/tsconfig.json b/packages/frontend-core/tsconfig.json index 3900034413e..5d7552f42ba 100644 --- a/packages/frontend-core/tsconfig.json +++ b/packages/frontend-core/tsconfig.json @@ -1,6 +1,8 @@ { + "extends": "../../tsconfig.build.json", "compilerOptions": { "target": "ESNext", + "module": "preserve", "moduleResolution": "bundler", "skipLibCheck": true, "paths": { From f417f7f6705c6335aa8504bb4836283c90f1483a Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 24 Dec 2024 09:59:17 +0100 Subject: [PATCH 2/4] Allowjs --- packages/frontend-core/tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend-core/tsconfig.json b/packages/frontend-core/tsconfig.json index 5d7552f42ba..6ea7b8937ec 100644 --- a/packages/frontend-core/tsconfig.json +++ b/packages/frontend-core/tsconfig.json @@ -4,7 +4,9 @@ "target": "ESNext", "module": "preserve", "moduleResolution": "bundler", + "outDir": "./dist", "skipLibCheck": true, + "allowJs": true, "paths": { "@budibase/types": ["../types/src"], "@budibase/shared-core": ["../shared-core/src"], From 37a8ae2d9838f40517a661c1356734a4c30c71ff Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 24 Dec 2024 10:01:35 +0100 Subject: [PATCH 3/4] Fix paths --- packages/frontend-core/tsconfig.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/frontend-core/tsconfig.json b/packages/frontend-core/tsconfig.json index 6ea7b8937ec..8ffb3f19be0 100644 --- a/packages/frontend-core/tsconfig.json +++ b/packages/frontend-core/tsconfig.json @@ -6,12 +6,7 @@ "moduleResolution": "bundler", "outDir": "./dist", "skipLibCheck": true, - "allowJs": true, - "paths": { - "@budibase/types": ["../types/src"], - "@budibase/shared-core": ["../shared-core/src"], - "@budibase/bbui": ["../bbui/src"] - } + "allowJs": true }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"] From 8265fc8ab58e3b67ed834de938beaba095951eba Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 24 Dec 2024 10:08:20 +0100 Subject: [PATCH 4/4] Add frontend-core check:types --- packages/frontend-core/package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/frontend-core/package.json b/packages/frontend-core/package.json index 8377b13ea29..b1f311183a0 100644 --- a/packages/frontend-core/package.json +++ b/packages/frontend-core/package.json @@ -5,6 +5,9 @@ "author": "Budibase", "license": "MPL-2.0", "svelte": "./src/index.ts", + "scripts": { + "check:types": "yarn svelte-check" + }, "dependencies": { "@budibase/bbui": "*", "@budibase/shared-core": "*", @@ -13,5 +16,8 @@ "lodash": "4.17.21", "shortid": "2.2.15", "socket.io-client": "^4.7.5" + }, + "devDependencies": { + "svelte-check": "^4.1.0" } }