1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

refactor: generate types to /types/core instead for simplicity

This commit is contained in:
linonetwo 2024-09-12 15:05:09 +08:00
parent e3fc9b4d33
commit 18517b67c0
3 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -9,4 +9,4 @@ node_modules/
/playwright-report/
/playwright/.cache/
$__StoryList.tid
types/generated/
types/core/

View File

@ -12,15 +12,16 @@
"checkJs": true,
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "types/generated",
"declarationDir": "types/",
"declarationMap": true,
"emitDeclarationOnly": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "Node16",
"outDir": "types/generated",
"outDir": "types/",
"skipLibCheck": true,
"target": "ESNext"
},
"include": ["./core/**/*.js", "./core/**/*.d.ts", "types/tw.d.ts"],
"exclude": ["types/generated"]
"include": ["./core/**/*.js", "./core/**/*.d.ts", "types/*.d.ts"],
// Exclude the generated types from the core folder
"exclude": ["types/core",]
}

View File

@ -4,17 +4,16 @@
// Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project.
"$:/core/*": ["core/*"]
},
"baseUrl": "./generated",
"rootDir": "./generated",
"baseUrl": "./",
"rootDir": "./",
"noEmit": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "types/generated",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "Node16",
"skipLibCheck": true,
"target": "ESNext"
},
"include": ["./generated/**/*.d.ts"]
"include": ["./core/**/*.d.ts"]
}