From eaeec550d8ada3a8fb0ff157f6297744e5c1064e Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Sat, 14 Mar 2026 21:27:40 +0100 Subject: [PATCH] chore: move build tools to devDependencies, shared deps to peerDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tsup and typescript are only needed at build time — move to devDependencies so they can be pruned after build. Dependencies already available from the host Quartz installation are moved to peerDependencies to avoid duplication. --- package.json | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 2d7f6a9..77d26e0 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ }, "peerDependencies": { "@jackyzha0/quartz": "^4.5.2", - "preact": "^10.0.0" + "preact": "^10.0.0", + "rehype-pretty-code": "^0.14.0" }, "peerDependenciesMeta": { "@jackyzha0/quartz": { @@ -53,13 +54,13 @@ }, "preact": { "optional": false + }, + "rehype-pretty-code": { + "optional": true } }, "dependencies": { - "@quartz-community/types": "github:quartz-community/types", - "rehype-pretty-code": "^0.14.0", - "tsup": "^8.5.0", - "typescript": "^5.9.3" + "@quartz-community/types": "github:quartz-community/types" }, "devDependencies": { "@types/hast": "^3.0.4", @@ -72,7 +73,9 @@ "preact": "^10.28.2", "prettier": "^3.6.2", "sass": "^1.97.3", - "vitest": "^2.1.9" + "vitest": "^2.1.9", + "tsup": "^8.5.0", + "typescript": "^5.9.3" }, "engines": { "node": ">=22",