UNPKG

@alecvision/borg

Version:

Model your data with Borg and get run-time type validation, TypeScript types, (de)serialization, and MongoDB niceties such as BSON type conversion and auto-generated validation schemas - for free.

91 lines (90 loc) 2.02 kB
{ "name": "@alecvision/borg", "version": "0.4.10", "description": "Model your data with Borg and get run-time type validation, TypeScript types, (de)serialization, and MongoDB niceties such as BSON type conversion and auto-generated validation schemas - for free. ", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "enginesStrict": true, "files": [ "dist/*" ], "engines": { "node": ">=16.0.0" }, "scripts": { "dev": "vitest --coverage --ui", "test": "vitest run --coverage", "build": "tsup", "lint": "npx tsc", "ci": "npm ci && npm run lint && npm run test && npm run build", "stage": "npm run build && npm publish --access=restricted --tag=next", "release": "npm run build && changeset publish" }, "repository": { "type": "git", "url": "github.com/alecvision/borg" }, "keywords": [ "odm", "object data model", "validation", "mongo", "mongodb", "typescript", "zod", "trpc", "t3", "schema", "typesafe", "jsonschema", "bson", "bsonschema" ], "author": "Alec Helmturner", "license": "ISC", "devDependencies": { "@changesets/cli": "^2.26.0", "@vitest/coverage-c8": "^0.29.3", "@vitest/ui": "^0.29.2", "prettier": "^2.8.4", "ts-node": "^10.9.1", "tsup": "^6.6.3", "typescript": "^5.0.2", "vitest": "^0.29.3" }, "dependencies": { "bson": "^5.0.1" }, "prettier": { "semi": true, "trailingComma": "none", "arrowParens": "avoid", "tabWidth": 2 }, "tsup": { "minify": true, "minifyIdentifiers": true, "noExternal": [ "./src/types.ts" ], "external": [ "bson" ], "skipNodeModulesBundle": true, "treeshake": true, "tsconfig": "tsconfig.json", "define": { "import.meta.vitest": "undefined" }, "dts": true, "entry": [ "./src/index.ts" ], "outDir": "./dist", "format": [ "esm", "cjs" ] } }