100 lines
3.1 KiB
JSON
100 lines
3.1 KiB
JSON
{
|
|
"name": "zod",
|
|
"version": "3.14.3",
|
|
"description": "TypeScript-first schema declaration and validation library with static type inference",
|
|
"main": "./lib/index.js",
|
|
"types": "./lib/index.d.ts",
|
|
"module": "./lib/index.mjs",
|
|
"dependencies": {},
|
|
"exports": {
|
|
".": {
|
|
"require": "./lib/index.js",
|
|
"import": "./lib/index.mjs",
|
|
"types": "./lib/index.d.ts"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"/lib"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/colinhacks/zod"
|
|
},
|
|
"author": "Colin McDonnell <colin@colinhacks.com>",
|
|
"license": "MIT",
|
|
"sideEffects": false,
|
|
"bugs": {
|
|
"url": "https://github.com/colinhacks/zod/issues"
|
|
},
|
|
"homepage": "https://github.com/colinhacks/zod",
|
|
"funding": "https://github.com/sponsors/colinhacks",
|
|
"support": {
|
|
"backing": {
|
|
"npm-funding": true
|
|
}
|
|
},
|
|
"keywords": [
|
|
"typescript",
|
|
"schema",
|
|
"validation",
|
|
"type",
|
|
"inference"
|
|
],
|
|
"scripts": {
|
|
"prettier:check": "prettier --check src/**/*.ts deno/lib/**/*.ts --no-error-on-unmatched-pattern",
|
|
"prettier:fix": "prettier --write src/**/*.ts deno/lib/**/*.ts --ignore-unknown --no-error-on-unmatched-pattern",
|
|
"lint:check": "eslint --ext .ts ./src",
|
|
"lint:fix": "eslint --fix --ext .ts ./src",
|
|
"check": "yarn lint:check && yarn prettier:check",
|
|
"fix": "yarn lint:fix && yarn prettier:fix",
|
|
"clean": "rm -rf lib/* deno/lib/*",
|
|
"build": "yarn run clean && npm run build:cjs && npm run build:esm && npm run build:deno",
|
|
"build:deno": "node ./deno/build.mjs",
|
|
"build:esm": "rollup --config rollup.config.js",
|
|
"build:cjs": "tsc --p tsconfig.cjs.json",
|
|
"build:types": "tsc --p tsconfig.types.json",
|
|
"rollup": "rollup --config rollup.config.js",
|
|
"test": "jest --coverage",
|
|
"test:deno": "cd deno && deno test",
|
|
"prepublishOnly": "npm run test && npm run build && npm run build:deno",
|
|
"play": "nodemon -e ts -w . -x ts-node src/playground.ts --project tsconfig.json --trace-warnings",
|
|
"depcruise": "depcruise -c .dependency-cruiser.js src",
|
|
"benchmark": "ts-node src/benchmarks/index.ts",
|
|
"prepare": "husky install"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-typescript": "^8.2.0",
|
|
"@types/benchmark": "^2.1.0",
|
|
"@types/jest": "^26.0.17",
|
|
"@types/node": "14",
|
|
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
|
"@typescript-eslint/parser": "^5.15.0",
|
|
"benchmark": "^2.1.4",
|
|
"dependency-cruiser": "^9.19.0",
|
|
"eslint": "^8.11.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-ban": "^1.6.0",
|
|
"eslint-plugin-import": "^2.25.4",
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
"husky": "^7.0.4",
|
|
"jest": "^27.5.1",
|
|
"lint-staged": "^12.3.7",
|
|
"nodemon": "^2.0.15",
|
|
"prettier": "^2.6.0",
|
|
"pretty-quick": "^3.1.3",
|
|
"rollup": "^2.70.1",
|
|
"ts-jest": "^27.1.3",
|
|
"ts-node": "^10.7.0",
|
|
"tslib": "^2.3.1",
|
|
"typescript": "^4.6.2"
|
|
},
|
|
"lint-staged": {
|
|
"src/*.ts": [
|
|
"eslint --cache --fix",
|
|
"prettier --ignore-unknown --write"
|
|
]
|
|
}
|
|
}
|