diff --git a/packages/shared-core/package.json b/packages/shared-core/package.json index e7b98e469b..c532a74b8f 100644 --- a/packages/shared-core/package.json +++ b/packages/shared-core/package.json @@ -10,7 +10,6 @@ "prebuild": "rimraf dist/", "build": "node ../../scripts/build.js && tsc -p tsconfig.build.json --emitDeclarationOnly --paths null", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", - "dev": "tsc -p tsconfig.json --watch --preserveWatchOutput", "check:types": "tsc -p tsconfig.json --noEmit --paths null --target es2020", "test": "jest", "test:watch": "yarn test --watchAll" diff --git a/packages/shared-core/tsconfig.build.json b/packages/shared-core/tsconfig.build.json index c1d5bc96e8..9598938197 100644 --- a/packages/shared-core/tsconfig.build.json +++ b/packages/shared-core/tsconfig.build.json @@ -1,22 +1,8 @@ { + "extends": "../../tsconfig.build.json", "compilerOptions": { - "target": "es6", - "module": "commonjs", - "lib": ["es2020"], - "strict": true, - "noImplicitAny": true, - "esModuleInterop": true, - "resolveJsonModule": true, - "incremental": true, - "sourceMap": true, - "declaration": true, - "types": ["node"], - "outDir": "dist", - "skipLibCheck": true, - "paths": { - "@budibase/types": ["../types/src"] - }, - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" + "rootDir": "src/", + "outDir": "dist" }, "include": ["src/**/*.ts"], "exclude": ["**/*.spec.ts", "**/*.spec.js", "__mocks__", "src/tests"] diff --git a/packages/types/tsconfig.build.json b/packages/types/tsconfig.build.json index 3c2699efee..34c2b771c3 100644 --- a/packages/types/tsconfig.build.json +++ b/packages/types/tsconfig.build.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.build.json", "compilerOptions": { + "rootDir": "src/", "outDir": "dist" }, "include": ["src/**/*"], diff --git a/tsconfig.build.json b/tsconfig.build.json index 022e0ae76d..3efd5f56b6 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -9,7 +9,16 @@ "resolveJsonModule": true, "skipLibCheck": true, "declaration": true, - "isolatedModules": true + "isolatedModules": true, + "paths": { + "@budibase/types": ["packages/types/src"], + "@budibase/backend-core": ["packages/backend-core/src"], + "@budibase/backend-core/*": ["packages/backend-core/*"], + "@budibase/shared-core": ["packages/shared-core/src"], + "@budibase/pro": ["packages/pro/src"], + "@budibase/string-templates": ["packages/string-templates/src"], + "@budibase/string-templates/*": ["packages/string-templates/*"] + } }, "exclude": [] }