Build types and shared-core

This commit is contained in:
Adria Navarro 2023-08-02 00:21:59 +02:00
parent d104cc3a31
commit 4281d2ca53
5 changed files with 8 additions and 6 deletions

View File

@ -6,7 +6,7 @@
"types": "src/index.ts", "types": "src/index.ts",
"exports": { "exports": {
".": { ".": {
"import": "./dist/src/index.js" "import": "./dist/index.js"
} }
}, },
"author": "Budibase", "author": "Budibase",

View File

@ -11,7 +11,7 @@
"sourceMap": true, "sourceMap": true,
"declaration": true, "declaration": true,
"types": ["node"], "types": ["node"],
"outDir": "dist/src", "outDir": "dist",
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["**/*.js", "**/*.ts"], "include": ["**/*.js", "**/*.ts"],

View File

@ -1,12 +1,12 @@
{ {
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"composite": true,
"baseUrl": ".", "baseUrl": ".",
"rootDir": "./src",
"composite": true,
"paths": { "paths": {
"@budibase/types": ["../types/src"] "@budibase/types": ["../../types/src"]
} }
}, },
"include": ["**/*.js", "**/*.ts"],
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]
} }

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es6", "target": "es6",
"moduleResolution": "node", "module": "commonjs",
"lib": ["es2020"], "lib": ["es2020"],
"strict": true, "strict": true,
"noImplicitAny": true, "noImplicitAny": true,

View File

@ -1,6 +1,8 @@
{ {
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"baseUrl": ".",
"rootDir": "./src",
"composite": true "composite": true
}, },
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]