UNPKG

@artinet/metadata-validator

Version:
87 lines (86 loc) 2.72 kB
{ "name": "@artinet/metadata-validator", "version": "0.0.3", "description": "a tool to validate metadata", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" } }, "files": [ "schemas", "dist", "README.md" ], "scripts": { "clean": "rimraf dist types", "build": "npm run clean && npm run generate-schema && rollup -c", "generate-schema": "mkdir -p src/types && npm run generate-zod-schema && npm run generate-json-types", "generate-zod-schema": "json-refs resolve src/schemas/registration-current.schema.json | npx json-schema-to-zod | npx prettier --parser typescript > src/types/registration-schema.zod.ts", "generate-json-types": "json2ts -i src/schemas/registration-current.schema.json -o src/types/registration-schema.ts", "test": "NODE_OPTIONS=--experimental-vm-modules jest", "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch", "test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage", "lint": "eslint src --ext .ts", "prepublishOnly": "npm run clean && npm run build && npm run lint && npm test" }, "keywords": [ "artinet", "metadata", "validator", "schema", "json", "ai", "agents" ], "author": "Artinet Team", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/the-artinet-project/metadata-validator.git", "directory": "modules/tools/metadata-validator" }, "bugs": { "url": "https://github.com/the-artinet-project/metadata-validator/issues" }, "homepage": "https://github.com/the-artinet-project/metadata-validator#readme", "dependencies": { "ajv": "^8.12.0", "ajv-formats": "^2.1.1", "json-refs": "^3.0.15", "json-schema-to-typescript": "^15.0.4", "json-schema-to-zod": "^2.6.1", "prettier": "^3.5.3", "zod": "^3.24.2", "zod-to-json-schema": "^3.24.5" }, "devDependencies": { "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.0", "@types/jest": "^29.5.14", "@types/node": "^20.8.10", "@eslint/js": "^9.25.1", "eslint": "^9.25.1", "globals": "^16.0.0", "jest": "^29.7.0", "prettier": "^3.5.3", "rimraf": "^5.0.5", "rollup": "^4.34.0", "rollup-plugin-typescript2": "^0.36.0", "ts-jest": "^29.3.2", "ts-node": "^10.9.1", "typescript": "^5.2.2", "typescript-eslint": "^8.31.0" }, "engines": { "node": ">=22.0.0" } }