znv
Version:
Parse your environment with Zod schemas
102 lines • 2.51 kB
JSON
{
"name": "znv",
"version": "0.5.0",
"description": "Parse your environment with Zod schemas",
"license": "MIT",
"keywords": [
"env",
"process.env",
"zod",
"validation"
],
"author": "s <https://github.com/lostfictions>",
"homepage": "https://github.com/lostfictions/znv",
"repository": {
"type": "git",
"url": "git+https://github.com/lostfictions/znv.git"
},
"bugs": {
"url": "https://github.com/lostfictions/znv/issues"
},
"type": "module",
"main": "dist-cjs/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"files": [
"dist/",
"dist-cjs/"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist-cjs/index.d.ts",
"default": "./dist-cjs/index.js"
}
},
"./compat": {
"import": {
"types": "./dist/compat.d.ts",
"default": "./dist/compat.js"
},
"require": {
"types": "./dist-cjs/compat.d.ts",
"default": "./dist-cjs/compat.js"
}
}
},
"peerDependencies": {
"zod": "^3.24.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.13.10",
"eslint": "^9.22.0",
"eslint-config-lostfictions": "^7.0.0",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.5.3",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.2",
"typescript": "^5.8.2",
"zod": "~3.24.2"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"extensionsToTreatAsEsm": [
".ts"
],
"rootDir": "src",
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"isolatedModules": true,
"useESM": true
}
]
}
},
"scripts": {
"build": "run-s -l \"build:*\"",
"build:clean": "rm -rf dist/ dist-cjs/",
"build:mjs": "tsc --project tsconfig.build.json",
"build:cjs": "tsc --project tsconfig.cjs.build.json",
"build:copy": "cp package.cjs.json dist-cjs/package.json",
"test": "run-p -cl \"test:*\"",
"test:ts": "tsc --noEmit",
"test:eslint": "eslint --color src",
"test:jest": "jest --colors",
"test:prettier": "prettier -l \"src/**/*\"",
"test:attw": "attw . --pack --profile node16",
"prettier": "prettier \"src/**/*\" --write",
"jest": "jest --colors --watch"
}
}