Skip to content

Commit ee08ae2

Browse files
committed
Restructure tsconfig files
- tsconfig.json is now the base config file that's used by VSCode - tsconfig.build.json is used for the final build - tsconfig.eslint.json is used by ESLint
1 parent 7daf4a5 commit ee08ae2

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"generate:fast": "ts-node ./scripts/generate.ts --fast",
2727
"watch:generate": "npm-watch",
2828
"clean": "rm -rf lib; rm -rf src/generated_parser.ts",
29-
"build": "yarn clean && yarn generate && tsc",
29+
"build": "yarn clean && yarn generate && tsc -p tsconfig.build.json",
3030
"test:bigquery": "jest --config test/config/bigquery.json",
3131
"test:mysql": "jest --config test/config/mysql.json",
3232
"test:mariadb": "jest --config test/config/mariadb.json",

tsconfig.build.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"outDir": "lib"
6+
},
7+
"include": ["src"]
8+
}

tsconfig.eslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"include": ["src", "test", "scripts", "perf"]
2+
"extends": "./tsconfig.json"
43
}

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"target": "es6",
66
"lib": ["es6"],
77
"rootDirs": ["src"],
8-
"outDir": "lib",
98
"baseUrl": "./",
109
"declaration": true,
1110
"esModuleInterop": true,
1211
"strict": true,
1312
"noImplicitReturns": true,
14-
"isolatedModules": true
13+
"isolatedModules": true,
14+
"noEmit": true
1515
},
16-
"include": ["src", "test", "perf"],
16+
"include": ["src", "test", "perf", "scripts"],
1717
"exclude": ["node_modules"]
1818
}

0 commit comments

Comments
 (0)