Skip to content

Commit

Permalink
refactor: tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
selemondev committed Oct 6, 2024
1 parent eb20284 commit 8d234f3
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 15 deletions.
1 change: 1 addition & 0 deletions docs/.env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"dependencies": {
"@vueuse/motion": "^2.2.5",
"clsx": "^2.1.1",
"cobe": "^0.6.3",
"fs-extra": "^11.2.0",
"markdown-it": "^14.1.0",
"nanoid": "^5.0.7",
"tailwind-merge": "^2.5.3"
"tailwind-merge": "^2.5.3",
"vue-use-spring": "^0.3.3"
},
"devDependencies": {
"@antfu/eslint-config": "^3.7.3",
Expand Down
14 changes: 14 additions & 0 deletions docs/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",

"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"]
}
21 changes: 7 additions & 14 deletions docs/tsconfig.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
}
},
"include": [
"**/*.ts",
"**/*.d.ts",
"**/*.vue",
".vitepress/env.d.ts"
],
"exclude": [
"**/dist/**"
]
"files": []
}
19 changes: 19 additions & 0 deletions docs/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",

"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"],
"noEmit": true
},
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"nightwatch.conf.*",
"playwright.config.*"
]
}

0 comments on commit 8d234f3

Please sign in to comment.