Skip to content

Commit

Permalink
chore(build): Simplify TSConfig, Ensure Dist is Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Apr 20, 2024
1 parent 7e40b7f commit 3cbbf88
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion internals/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"repository": "git+https://github.com/skyblock-finance/skyblock-finance-opensource.git",
"scripts": {
"build": "tsc --build",
"build": "rm -rf dist && tsc --build",
"check:eslint": "bun run eslint --max-warnings=0 .",
"check:prettier": "bun --bun run --cwd ../.. prettier --check internals/eslint-config",
"check:publint": "bun --bun run publint",
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"url": "git+https://github.com/skyblock-finance/skyblock-finance-opensource"
},
"scripts": {
"build": "tsc --build",
"build": "rm -rf dist && tsc --build",
"check:eslint": "bun run eslint --max-warnings=0 .",
"check:prettier": "bun --bun run --cwd ../.. prettier --check packages/schemas",
"check:publint": "bun --bun run publint",
Expand Down
14 changes: 3 additions & 11 deletions packages/schemas/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
{
"compilerOptions": {
"composite": true,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"noImplicitAny": true,
"noUnusedLocals": true,
"moduleResolution": "Node",
"outDir": "./dist",
"resolveJsonModule": true,
"rootDir": "./source",
"strict": true,
"strictNullChecks": true,
"target": "es5",
"tsBuildInfoFile": "./dist/.tsbuildinfo",
"types": ["node"]
"types": ["bun"]
},
"exclude": ["source/**/*.test.ts"],
"extends": "../../tsconfig.json",
"include": ["source/**/*.ts"]
}
16 changes: 10 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"compilerOptions": {
"composite": true,
"declaration": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext"],
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"noEmit": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ESNext",
"verbatimModuleSyntax": true
"strictNullChecks": true,
"target": "ESNext"
}
}

0 comments on commit 3cbbf88

Please sign in to comment.