Skip to content

Commit

Permalink
chore: migrate to solution tsconfig structure
Browse files Browse the repository at this point in the history
  • Loading branch information
SegaraRai committed Jun 17, 2024
1 parent ecedd50 commit 1694ede
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build",
"build": "tsc -b && vite build",
"preview": "wrangler dev --no-bundle --env development",
"preview-build": "vite build --mode preview",
"lint": "eslint . && prettier -c .",
Expand Down
File renamed without changes.
24 changes: 24 additions & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "ES2022",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"verbatimModuleSyntax": true
},
"include": ["src", ".storybook"]
}
28 changes: 3 additions & 25 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
{
"compilerOptions": {
"target": "ES2022",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"verbatimModuleSyntax": true
},
"include": ["src"],
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
}
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}
5 changes: 2 additions & 3 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"target": "ES2022",
"checkJs": true,
"emitDeclarationOnly": true,
"noEmit": true,
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
Expand All @@ -18,5 +17,5 @@
"verbatimModuleSyntax": true
},
"include": ["."],
"exclude": ["src", "dist", "node_modules"]
"exclude": ["node_modules", "dist", "src", ".storybook"]
}

0 comments on commit 1694ede

Please sign in to comment.