mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-01 09:20:02 +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-report/
|
||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
$__StoryList.tid
|
$__StoryList.tid
|
||||||
types/generated/
|
types/core/
|
||||||
|
@ -12,15 +12,16 @@
|
|||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationDir": "types/generated",
|
"declarationDir": "types/",
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"emitDeclarationOnly": true,
|
"emitDeclarationOnly": true,
|
||||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||||
"module": "Node16",
|
"module": "Node16",
|
||||||
"outDir": "types/generated",
|
"outDir": "types/",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"target": "ESNext"
|
"target": "ESNext"
|
||||||
},
|
},
|
||||||
"include": ["./core/**/*.js", "./core/**/*.d.ts", "types/tw.d.ts"],
|
"include": ["./core/**/*.js", "./core/**/*.d.ts", "types/*.d.ts"],
|
||||||
"exclude": ["types/generated"]
|
// 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.
|
// Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project.
|
||||||
"$:/core/*": ["core/*"]
|
"$:/core/*": ["core/*"]
|
||||||
},
|
},
|
||||||
"baseUrl": "./generated",
|
"baseUrl": "./",
|
||||||
"rootDir": "./generated",
|
"rootDir": "./",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationDir": "types/generated",
|
|
||||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||||
"module": "Node16",
|
"module": "Node16",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"target": "ESNext"
|
"target": "ESNext"
|
||||||
},
|
},
|
||||||
"include": ["./generated/**/*.d.ts"]
|
"include": ["./core/**/*.d.ts"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user