Skip to content

Commit de60309

Browse files
committed
misc: Use TS shared for whole monorepo
1 parent 64b975a commit de60309

File tree

6 files changed

+24
-26
lines changed

6 files changed

+24
-26
lines changed

packages/cubejs-druid-driver/custom.d.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/cubejs-druid-driver/src/DruidDriver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export class DruidDriver extends BaseDriver {
1111

1212
protected readonly client: DruidClient;
1313

14-
static dialectClass() {
14+
public static dialectClass() {
1515
return DruidQuery;
1616
}
1717

18-
constructor(config?: DruidDriverConfiguration) {
18+
public constructor(config?: DruidDriverConfiguration) {
1919
super();
2020

2121
let url = config?.url || process.env.CUBEJS_DB_URL;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '@cubejs-backend/schema-compiler/adapter/BaseQuery' {
2+
declare var BaseQuery: any;
3+
4+
export default BaseQuery;
5+
}
Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
{
22
"extends": "../../tsconfig.base.json",
3+
"include": [
4+
"src",
5+
"test"
6+
],
37
"compilerOptions": {
4-
"outDir": "./dist", /* Redirect output structure to the directory. */
5-
"strict": true, /* Enable all strict type-checking options. */
6-
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
7-
"strictNullChecks": true, /* Enable strict null checks. */
8-
"strictFunctionTypes": true, /* Enable strict checking of function types. */
9-
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
10-
"strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
11-
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
12-
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
13-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
14-
"allowSyntheticDefaultImports": true,
15-
"skipLibCheck": true, /* Skip type checking of declaration files. */
16-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
8+
"outDir": "dist",
9+
"rootDir": ".",
10+
"baseUrl": ".",
1711
}
1812
}

tsconfig.base.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111
"module": "commonjs",
1212
"baseUrl": ".",
1313
"paths": {
14-
"*": [
15-
"packages/*/src"
14+
"@cubejs-backend/*": [
15+
"packages/cubejs-api-gateway/src",
16+
"packages/cubejs-cli/src",
17+
"packages/cubejs-query-orchestrator/src",
18+
"packages/cubejs-schema-compiler/",
19+
"packages/cubejs-server/src",
20+
"packages/cubejs-server-core/src",
1621
]
1722
},
1823
"composite": true,

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
{
1111
"path": "packages/cubejs-query-orchestrator"
1212
},
13+
{
14+
"path": "packages/cubejs-druid-driver"
15+
},
1316
{
1417
"path": "packages/cubejs-server-core"
1518
},

0 commit comments

Comments
 (0)