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 74d9adac79
commit 3c8374fdff
No known key found for this signature in database
3 changed files with 10321 additions and 58 deletions

10354
dist/index.js vendored

File diff suppressed because it is too large Load diff

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -53,12 +53,7 @@
},
"peerDependencies": {
"@jackyzha0/quartz": "^4.5.2",
"gray-matter": "^4.0.3",
"js-yaml": "^4.1.0",
"preact": "^10.0.0",
"remark-frontmatter": "^5.0.0",
"toml": "^3.0.0",
"unified": "^11.0.5",
"vfile": "^6.0.3"
},
"peerDependenciesMeta": {
@ -68,21 +63,6 @@
"preact": {
"optional": false
},
"gray-matter": {
"optional": true
},
"js-yaml": {
"optional": true
},
"remark-frontmatter": {
"optional": true
},
"toml": {
"optional": true
},
"unified": {
"optional": true
},
"vfile": {
"optional": true
}
@ -101,7 +81,9 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
"hast-util-to-jsx-runtime": "^2.3.6",
"js-yaml": "^4.1.0",
"preact": "^10.28.2",
"prettier": "^3.6.2",
"remark-frontmatter": "^5.0.0",
@ -109,6 +91,7 @@
"toml": "^3.0.0",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
"unified": "^11.0.5",
"vitest": "^2.1.9"
},
"engines": {