Fix cli check:types

This commit is contained in:
Adria Navarro 2024-03-15 10:38:51 +01:00
parent 204aadc8e6
commit 69ecf5183b
3 changed files with 3 additions and 10 deletions

View File

@ -15,7 +15,8 @@
"@budibase/types": ["../types/src"], "@budibase/types": ["../types/src"],
"@budibase/backend-core": ["../backend-core/src"], "@budibase/backend-core": ["../backend-core/src"],
"@budibase/backend-core/*": ["../backend-core/*"], "@budibase/backend-core/*": ["../backend-core/*"],
"@budibase/shared-core": ["../shared-core/src"] "@budibase/shared-core": ["../shared-core/src"],
"@budibase/string-templates": ["../string-templates/src"]
} }
}, },
"include": ["src/**/*"], "include": ["src/**/*"],

View File

@ -1,16 +1,8 @@
{ {
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"sourceMap": true,
"baseUrl": ".",
"resolveJsonModule": true
},
"ts-node": { "ts-node": {
"require": ["tsconfig-paths/register"], "require": ["tsconfig-paths/register"],
"swc": true "swc": true
}, },
"include": ["src/**/*", "package.json"],
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]
} }

View File

@ -82,7 +82,7 @@ function initialConfig(str: any, pattern: any, options?: any) {
return { str, pattern, options } return { str, pattern, options }
} }
function setLocale(str: any, pattern: any, options?: any) { function setLocale(this: any, str: any, pattern: any, options?: any) {
// if options is null then it'll get updated here // if options is null then it'll get updated here
const config = initialConfig(str, pattern, options) const config = initialConfig(str, pattern, options)
const defaults = { lang: "en", date: new Date(config.str) } const defaults = { lang: "en", date: new Date(config.str) }