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:
parent
e3fc9b4d33
commit
18517b67c0
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,4 +9,4 @@ node_modules/
|
||||
/playwright-report/
|
||||
/playwright/.cache/
|
||||
$__StoryList.tid
|
||||
types/generated/
|
||||
types/core/
|
||||
|
@ -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",]
|
||||
}
|
||||
|
@ -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"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user