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:
parent
492d812ce0
commit
ac308e0f89
@ -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
|
||||
|
||||
\*/
|
||||
|
||||
/**
|
||||
|
@ -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": {
|
||||
"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"
|
||||
|
Loading…
Reference in New Issue
Block a user