diff --git a/packages/frontend-core/package.json b/packages/frontend-core/package.json index 8377b13ea2..b1f311183a 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" } } diff --git a/packages/frontend-core/tsconfig.json b/packages/frontend-core/tsconfig.json index 3900034413..8ffb3f19be 100644 --- a/packages/frontend-core/tsconfig.json +++ b/packages/frontend-core/tsconfig.json @@ -1,13 +1,12 @@ { + "extends": "../../tsconfig.build.json", "compilerOptions": { "target": "ESNext", + "module": "preserve", "moduleResolution": "bundler", + "outDir": "./dist", "skipLibCheck": true, - "paths": { - "@budibase/types": ["../types/src"], - "@budibase/shared-core": ["../shared-core/src"], - "@budibase/bbui": ["../bbui/src"] - } + "allowJs": true }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"]