zod-package-json
Version:
Zod schema for the package.json file format
78 lines (77 loc) • 1.65 kB
JSON
{
"name": "zod-package-json",
"version": "2.1.0",
"description": "Zod schema for the package.json file format",
"license": "MIT",
"author": {
"name": "Edoardo Scibona",
"url": "https://github.com/velut"
},
"repository": {
"type": "git",
"url": "https://github.com/velut/zod-package-json.git"
},
"bugs": {
"url": "https://github.com/velut/zod-package-json/issues"
},
"keywords": [
"zod",
"schema",
"package",
"json",
"typescript",
"npm"
],
"sideEffects": false,
"type": "module",
"zshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts",
"./mini": "./src/mini/index.ts"
},
"cjs": false
},
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./mini": {
"types": "./dist/mini/index.d.ts",
"import": "./dist/mini/index.js"
}
},
"files": [
"dist"
],
"engines": {
"node": ">=20"
},
"scripts": {
"check": "tsc --noEmit",
"build": "tsc --noEmit && zshy",
"attw": "attw --pack . --profile esm-only",
"test": "vitest",
"test:ci": "vitest run --coverage --bail 1",
"lint": "prettier --check .",
"format": "prettier --write .",
"pre-push": "bun install && bun run lint && bun run build && bun run test:ci && bun run attw",
"release": "np --no-cleanup"
},
"peerDependencies": {
"zod": "^4.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@vitest/coverage-v8": "^3.2.4",
"np": "^10.2.0",
"prettier": "^3.6.2",
"typescript": "^5.9.2",
"vitest": "^3.2.4",
"zshy": "^0.3.5"
}
}