fix: bundle non-shared deps into dist to prevent runtime resolution failures

Move non-allowlisted packages from dependencies/peerDependencies to
devDependencies so tsup bundles them into dist/ instead of leaving
them as external imports that may not resolve at runtime.
This commit is contained in:
saberzero1 2026-03-17 19:31:51 +01:00
parent e7904abba5
commit cc83c5b513
No known key found for this signature in database
3 changed files with 3562 additions and 40 deletions

3572
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -54,48 +54,23 @@
},
"peerDependencies": {
"@jackyzha0/quartz": "^4.5.2",
"mdast-util-find-and-replace": "^3.0.1",
"preact": "^10.0.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.3"
},
"peerDependenciesMeta": {
"@jackyzha0/quartz": {
"optional": true
},
"mdast-util-find-and-replace": {
"optional": true
},
"preact": {
"optional": false
},
"rehype-slug": {
"optional": true
},
"remark-gfm": {
"optional": true
},
"remark-parse": {
"optional": true
},
"unified": {
"optional": true
},
"unist-util-visit": {
"optional": true
},
"vfile": {
"optional": true
}
},
"dependencies": {
"@quartz-community/types": "github:quartz-community/types",
"@quartz-community/utils": "github:quartz-community/utils",
"remark-stringify": "^11.0.0"
"@quartz-community/utils": "github:quartz-community/utils"
},
"devDependencies": {
"@types/hast": "^3.0.4",
@ -113,6 +88,7 @@
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"sass": "^1.97.3",
"tsup": "^8.5.0",
"typescript": "^5.9.3",