Skip to content

Commit 5bf835b

Browse files
committed
fix(types): externalize markdown-it types
ref: boyum/markdown-it-image-size#888 (comment)
1 parent fc267ae commit 5bf835b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"@shikijs/core": "^3.9.2",
102102
"@shikijs/transformers": "^3.9.2",
103103
"@shikijs/types": "^3.9.2",
104+
"@types/markdown-it": "^14.1.2",
104105
"@vitejs/plugin-vue": "^6.0.1",
105106
"@vue/devtools-api": "^8.0.0",
106107
"@vue/shared": "^3.5.18",
@@ -134,7 +135,6 @@
134135
"@types/fs-extra": "^11.0.4",
135136
"@types/lodash.template": "^4.5.3",
136137
"@types/mark.js": "^8.11.12",
137-
"@types/markdown-it": "^14.1.2",
138138
"@types/markdown-it-attrs": "^4.1.3",
139139
"@types/markdown-it-container": "^2.0.10",
140140
"@types/markdown-it-emoji": "^3.0.1",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ const esmBuild: RollupOptions = {
5656
const typesExternal = [
5757
...external,
5858
/\/vitepress\/(?!(dist|node_modules|vitepress)\/).*\.d\.ts$/,
59-
'source-map-js',
60-
'fast-glob'
59+
/^markdown-it(?:\/|$)/
6160
]
6261

6362
const dtsNode = dts({

0 commit comments

Comments
 (0)