utils/package.json
saberzero1 eaa6160504
fix: move tsup and typescript to dependencies for git install compatibility
When installed as a git dependency, npm skips devDependencies. Since
dist/ is gitignored and the prepare script needs tsup to build, these
must be regular dependencies so the prepare hook works on install.
2026-02-22 22:05:35 +01:00

81 lines
1.9 KiB
JSON

{
"name": "@quartz-community/utils",
"version": "0.1.0",
"description": "Shared utility functions for Quartz community plugins.",
"type": "module",
"license": "MIT",
"author": "Quartz Community",
"homepage": "https://quartz.jzhao.xyz",
"repository": {
"type": "git",
"url": "https://github.com/quartz-community/utils"
},
"keywords": [
"quartz",
"quartz-plugin",
"utilities",
"path",
"dom"
],
"files": [
"dist",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./path": {
"types": "./dist/path.d.ts",
"import": "./dist/path.js"
},
"./dom": {
"types": "./dist/dom.d.ts",
"import": "./dist/dom.js"
},
"./lang": {
"types": "./dist/lang.d.ts",
"import": "./dist/lang.js"
},
"./escape": {
"types": "./dist/escape.d.ts",
"import": "./dist/escape.js"
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"dependencies": {
"@quartz-community/types": "github:quartz-community/types",
"github-slugger": "^2.0.0",
"tsup": "^8.5.0",
"typescript": "^5.9.3"
},
"scripts": {
"build": "tsup",
"prepare": "npm run build",
"dev": "tsup --watch",
"lint": "eslint . --max-warnings=0",
"format": "prettier . --check",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"check": "npm run typecheck && npm run lint && npm run format && npm run test"
},
"devDependencies": {
"@types/node": "^24.10.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.6.2",
"vitest": "^2.1.9"
},
"engines": {
"node": ">=22",
"npm": ">=10.9.2"
}
}