1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-05 23:10:28 +00:00

feat: Allow import('$:/core/modules/...') instead of import('../../core/modules/...'). Only works inside this project.

This commit is contained in:
linonetwo 2024-09-10 15:14:45 +08:00
parent 492d812ce0
commit ac308e0f89
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/**
/*\
title: $:/core/modules/parsers/wikiparser/rules/codeblock.js
type: application/javascript
module-type: wikirule
@ -11,8 +11,6 @@ Wiki text rule for code blocks. For example:
```
```
@module $:/core/modules/parsers/wikiparser/rules/codeblock.js
\*/
/**

View File

@ -1,5 +1,5 @@
/**
* @typedef {import('./rules/codeblock').CodeblockNode} CodeblockNode
* @typedef {import('$:/core/modules/parsers/wikiparser/rules/codeblock.js').CodeblockNode} CodeblockNode
*/
/**

View File

@ -1,6 +1,7 @@
{
"compilerOptions": {
"paths": { // Add paths
"paths": {
// Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project.
"$:/core/*": ["./core/*"]
},
"noImplicitAny": false,
@ -12,10 +13,10 @@
"declaration": true,
"declarationDir": "types",
"declarationMap": true,
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "Node16",
"outDir": "silences wrong TS error, we don't compile, we only typecheck",
"outDir": "types",
"rootDir": "core",
"skipLibCheck": true,
"target": "ESNext"