mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Rename type declaration file micromark.d.ts to micromark.d.cts in markdownlint-micromark so TypeScript will successfully reference it via its package.json/types (fixes #1160, closes #1160).
This commit is contained in:
parent
b7ed1e6540
commit
0dbbedb2f7
4 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true,
|
||||
"untrimmedFilePath": "<projectFolder>/micromark.d.ts"
|
||||
"untrimmedFilePath": "<projectFolder>/micromark.d.cts"
|
||||
},
|
||||
"tsdocMetadata": {
|
||||
"enabled": false
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "markdownlint-micromark",
|
||||
"version": "0.1.9",
|
||||
"version": "0.1.10",
|
||||
"description": "A trivial package that re-exports some micromark functionality as a CommonJS module",
|
||||
"type": "commonjs",
|
||||
"exports": "./micromark.cjs",
|
||||
"types": "./micromark.d.ts",
|
||||
"types": "./micromark.d.cts",
|
||||
"author": "David Anson (https://dlaa.me/)",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/DavidAnson/markdownlint",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"micromark-browser.js",
|
||||
"micromark-html-browser.js",
|
||||
"micromark.cjs",
|
||||
"micromark.d.ts",
|
||||
"micromark.d.cts",
|
||||
"package.json",
|
||||
"README.md"
|
||||
],
|
||||
|
|
6
micromark/types.d.ts
vendored
6
micromark/types.d.ts
vendored
|
@ -6,9 +6,9 @@
|
|||
// 1. npm install
|
||||
// 2. Comment-out micromark-util-types/ParseContext in node_modules/micromark-extension-gfm-footnote/index.d.ts
|
||||
// 3. npm run types
|
||||
// 4. Remove "import { KatexOptions as KatexOptions_2 } from 'katex';"
|
||||
// 5. Replace "KatexOptions_2" with "Object"
|
||||
// 6. Append "declare module 'micromark-util-types' { interface TokenTypeMap { ... } }" from:
|
||||
// 4. Remove "import { KatexOptions as KatexOptions_2 } from 'katex';" in micromark.d.cts
|
||||
// 5. Replace "KatexOptions_2" with "Object" in micromark.d.cts
|
||||
// 6. Append "declare module 'micromark-util-types' { interface TokenTypeMap { ... } }" in micromark.d.cts from:
|
||||
// - node_modules/micromark-extension-directive/index.d.ts
|
||||
// - node_modules/micromark-extension-gfm-autolink-literal/index.d.ts
|
||||
// - node_modules/micromark-extension-gfm-footnote/index.d.ts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue