Skip to content

Commit

Permalink
chore(scripts): update the tsconfig path for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Feb 13, 2024
1 parent e62b26c commit 46fe2b0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:unit": "vitest",
"db:generate": "drizzle-kit generate:sqlite",
"db:push": "drizzle-kit push:sqlite",
"db:migrate": "tsx --tsconfig ./tsconfig.json ./scripts/migrate.ts"
"db:migrate": "tsx --tsconfig ./scripts/tsconfig.json ./scripts/migrate.ts"
},
"devDependencies": {
"@playwright/test": "^1.28.1",
Expand Down
28 changes: 28 additions & 0 deletions scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
// enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx", // support JSX
"allowJs": true, // allow importing `.js` from `.ts`

// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

// Best practices
"strict": true,
"skipLibCheck": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags
"useUnknownInCatchVariables": true,
"noPropertyAccessFromIndexSignature": true
}
}

0 comments on commit 46fe2b0

Please sign in to comment.