Skip to content

Commit

Permalink
ci: fix builds with tsconfig dancing
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonC committed Oct 3, 2023
1 parent a55e105 commit a64df8f
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
node: true,
},
parserOptions: {
project: './tsconfig.base.json',
project: './tsconfig.eslint.json',
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
run: npx auto shipit
run: npx auto shipit --verbose
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ junit
.env.test.local
.env.production.local
.@tablecheck
tsconfig.compound.json
/packages/quality/build.config.ts
/packages/utils/build.config.ts
/tsconfig.eslint.json
/packages/utils/config
6 changes: 4 additions & 2 deletions packages/audit/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "./tsconfig.json",
"include": [
"src/**/*.ts",
"src/**/*.tsx",
Expand All @@ -13,7 +13,9 @@
"rootDir": "src",
"outDir": "dist",
"paths": {},
"module": "NodeNext"
"module": "NodeNext",

"resolveJsonModule": true
},
"exclude": ["node_modules"],
"files": []
Expand Down
4 changes: 3 additions & 1 deletion packages/audit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist"
"outDir": "dist",
"module": "NodeNext",
"resolveJsonModule": true
},
"exclude": ["node_modules"],
"files": []
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "./tsconfig.json",
"include": [
"src/**/*.ts",
"src/**/*.tsx",
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"rootDir": "src",
"outDir": "dist",
"paths": {},
"types": ["vitest"]
"types": ["vitest"],
"module": "NodeNext",
"resolveJsonModule": true
},
"exclude": ["node_modules"],
"files": []
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "./tsconfig.json",
"include": [
"src/**/*.ts",
"src/**/*.tsx",
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"rootDir": "src",
"outDir": "dist",
"paths": {},
"types": ["vitest"]
"types": ["vitest"],
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"exclude": ["node_modules"],
"files": []
Expand Down
4 changes: 3 additions & 1 deletion packages/nx/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist"
"outDir": "dist",
"module": "NodeNext",
"resolveJsonModule": true
},
"exclude": [
"node_modules",
Expand Down
4 changes: 3 additions & 1 deletion packages/semantic-release-config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {}
"paths": {},
"module": "NodeNext",
"resolveJsonModule": true
},
"exclude": ["node_modules"],
"files": []
Expand Down
4 changes: 3 additions & 1 deletion packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {}
"paths": {},
"module": "NodeNext",
"resolveJsonModule": true
},
"exclude": ["node_modules"],
"files": []
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
"sourceMap": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "ES2022",
"module": "NodeNext",
"lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"resolveJsonModule": true,
"module": "NodeNext"
},
"exclude": ["node_modules", "tmp"]
}
7 changes: 2 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "CommonJS"
},
"exclude": ["node_modules", "tmp"]
"include": ["this file is just for auto-rc to work correctly..."],
"exclude": ["**/*"]
}

0 comments on commit a64df8f

Please sign in to comment.