zod-opts
Version:
node.js CLI option parser / validator using Zod
67 lines (66 loc) • 2.22 kB
JSON
{
"name": "zod-opts",
"version": "1.0.0",
"description": "node.js CLI option parser / validator using Zod",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist"
],
"keywords": [
"argument",
"args",
"option",
"parser",
"cli",
"command"
],
"author": "ndruger",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ndruger/zod-opts.git"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^18.19.130",
"@typescript-eslint/eslint-plugin": "^8.51.0",
"@typescript-eslint/parser": "^8.51.0",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-n": "^17.23.1",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"expect-type": "^1.3.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"prettier": "^2.8.8",
"ts-jest": "^29.0.5",
"typescript": "^5.4.2",
"zod": "^3.25.76"
},
"peerDependencies": {
"zod": "^3.25.0 || ^4.0.0"
},
"scripts": {
"build": "tsc --build tsconfig.build.json",
"watch": "tsc -w",
"test": "jest --silent=false",
"test:zod3": "node ./scripts/run-with-zod-version.mjs ^3.25.0 -- npm run test",
"test:zod4": "node ./scripts/run-with-zod-version.mjs ^4.3.4 -- npm run test",
"test_cov:zod3": "node ./scripts/run-with-zod-version.mjs ^3.25.0 -- jest --silent=false --collect-coverage",
"test_cov:zod4": "node ./scripts/run-with-zod-version.mjs ^4.3.4 -- jest --silent=false --collect-coverage",
"typecheck:zod3": "node ./scripts/run-with-zod-version.mjs ^3.25.0 -- npx tsc --noEmit",
"typecheck:zod4": "node ./scripts/run-with-zod-version.mjs ^4.3.4 -- npx tsc --noEmit",
"format": "prettier --write 'rule/**/*.yml' 'src/**/*.ts' 'test/**/*.ts'",
"lint": "eslint src/**/*.ts test/**/*.ts",
"verify:all": "npm run test:zod3 && npm run test:zod4 && npm run typecheck:zod3 && npm run typecheck:zod4 && npm run lint",
"fix": "eslint --fix src/**/*.ts test/**/*.ts",
"prepare": "husky",
"prepublishOnly": "npm run test && npm run lint"
},
"engines": {
"node": ">=18"
}
}