Check types

This commit is contained in:
Adria Navarro 2023-08-01 13:24:55 +02:00
parent 27517fc6c8
commit 5bea5bf974
3 changed files with 10 additions and 7 deletions

View File

@ -17,7 +17,8 @@
"prebuild": "rimraf dist/", "prebuild": "rimraf dist/",
"build": "tsc -p tsconfig.build.json && tsc -p tsconfig-cjs.build.json", "build": "tsc -p tsconfig.build.json && tsc -p tsconfig-cjs.build.json",
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
"dev:builder": "yarn prebuild && concurrently \"tsc -p tsconfig.build.json --watch\" \"tsc -p tsconfig-cjs.build.json --watch\"" "dev:builder": "yarn prebuild && concurrently \"tsc -p tsconfig.build.json --watch\" \"tsc -p tsconfig-cjs.build.json --watch\"",
"check:types": "tsc -p tsconfig.json --noEmit --paths null"
}, },
"dependencies": { "dependencies": {
"@budibase/types": "0.0.0" "@budibase/types": "0.0.0"

View File

@ -12,7 +12,10 @@
"declaration": true, "declaration": true,
"types": ["node"], "types": ["node"],
"outDir": "dist", "outDir": "dist",
"skipLibCheck": true "skipLibCheck": true,
"paths": {
"@budibase/types": ["../types/src"]
}
}, },
"include": ["**/*.js", "**/*.ts"], "include": ["**/*.js", "**/*.ts"],
"exclude": [ "exclude": [

View File

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