mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
feat: Allow import('$:/core/modules/...')
instead of import('../../core/modules/...')
. Only works inside this project.
This commit is contained in:
parent
492d812ce0
commit
ac308e0f89
@ -1,4 +1,4 @@
|
|||||||
/**
|
/*\
|
||||||
title: $:/core/modules/parsers/wikiparser/rules/codeblock.js
|
title: $:/core/modules/parsers/wikiparser/rules/codeblock.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: wikirule
|
module-type: wikirule
|
||||||
@ -11,8 +11,6 @@ Wiki text rule for code blocks. For example:
|
|||||||
```
|
```
|
||||||
```
|
```
|
||||||
|
|
||||||
@module $:/core/modules/parsers/wikiparser/rules/codeblock.js
|
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @typedef {import('./rules/codeblock').CodeblockNode} CodeblockNode
|
* @typedef {import('$:/core/modules/parsers/wikiparser/rules/codeblock.js').CodeblockNode} CodeblockNode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"paths": { // Add paths
|
"paths": {
|
||||||
|
// Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project.
|
||||||
"$:/core/*": ["./core/*"]
|
"$:/core/*": ["./core/*"]
|
||||||
},
|
},
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
@ -12,10 +13,10 @@
|
|||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationDir": "types",
|
"declarationDir": "types",
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"emitDeclarationOnly": false,
|
"emitDeclarationOnly": true,
|
||||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||||
"module": "Node16",
|
"module": "Node16",
|
||||||
"outDir": "silences wrong TS error, we don't compile, we only typecheck",
|
"outDir": "types",
|
||||||
"rootDir": "core",
|
"rootDir": "core",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"target": "ESNext"
|
"target": "ESNext"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user