Skip to content

Commit

Permalink
chore: add tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Apr 19, 2023
1 parent 37f6ff4 commit 2595373
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions packages/create-discord-bot/template/TypeScript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
// Mapped from https://www.typescriptlang.org/tsconfig
"compilerOptions": {
// Type Checking
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"useUnknownInCatchVariables": true,
"noUncheckedIndexedAccess": true,

// Modules
"module": "ESNext",
"moduleResolution": "node",
"resolveJsonModule": true,

// Emit
"newLine": "lf",
"outDir": "dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,

// Language and Environment
"lib": ["ESNext"],
"target": "ES2021",
"useDefineForClassFields": true
}
}
2 changes: 1 addition & 1 deletion packages/create-discord-bot/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { createTsupConfig } from '../../tsup.config.js';
export default createTsupConfig({
dts: false,
format: 'esm',
minify: true,
minify: false,
sourcemap: false,
});

0 comments on commit 2595373

Please sign in to comment.