Skip to content

Commit

Permalink
misc: Use TS shared for whole monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jan 11, 2021
1 parent 64b975a commit de60309
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 26 deletions.
9 changes: 0 additions & 9 deletions packages/cubejs-druid-driver/custom.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/cubejs-druid-driver/src/DruidDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export class DruidDriver extends BaseDriver {

protected readonly client: DruidClient;

static dialectClass() {
public static dialectClass() {
return DruidQuery;
}

constructor(config?: DruidDriverConfiguration) {
public constructor(config?: DruidDriverConfiguration) {
super();

let url = config?.url || process.env.CUBEJS_DB_URL;
Expand Down
5 changes: 5 additions & 0 deletions packages/cubejs-druid-driver/src/custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@cubejs-backend/schema-compiler/adapter/BaseQuery' {
declare var BaseQuery: any;

export default BaseQuery;
}
20 changes: 7 additions & 13 deletions packages/cubejs-druid-driver/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"include": [
"src",
"test"
],
"compilerOptions": {
"outDir": "./dist", /* Redirect output structure to the directory. */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
"strictFunctionTypes": true, /* Enable strict checking of function types. */
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
"strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"allowSyntheticDefaultImports": true,
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
}
}
9 changes: 7 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
"module": "commonjs",
"baseUrl": ".",
"paths": {
"*": [
"packages/*/src"
"@cubejs-backend/*": [
"packages/cubejs-api-gateway/src",
"packages/cubejs-cli/src",
"packages/cubejs-query-orchestrator/src",
"packages/cubejs-schema-compiler/",
"packages/cubejs-server/src",
"packages/cubejs-server-core/src",
]
},
"composite": true,
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{
"path": "packages/cubejs-query-orchestrator"
},
{
"path": "packages/cubejs-druid-driver"
},
{
"path": "packages/cubejs-server-core"
},
Expand Down

0 comments on commit de60309

Please sign in to comment.