Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
69 lines (69 loc) · 2.21 KB
/
Copy pathpackage.json
File metadata and controls
69 lines (69 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "validkit",
"version": "1.0.0",
"description": "Zero-dependency, TypeScript-first schema declaration & validation toolkit with bilingual (en/zh-CN) errors, coercion, async refinements and JSON Schema export. 零依赖的 TypeScript 优先模式声明与运行时校验工具库,内建中英文错误信息。",
"keywords": [
"schema",
"validation",
"validator",
"typescript",
"type-inference",
"runtime-validation",
"zod-alternative",
"i18n",
"sanitization",
"json-schema"
],
"homepage": "https://github.com/gitstq/validkit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/gitstq/validkit.git"
},
"bugs": {
"url": "https://github.com/gitstq/validkit/issues"
},
"license": "MIT",
"author": "gitstq",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"default": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"bin": {
"validkit": "./dist/cjs/cli.js"
},
"files": [
"dist",
"README.md",
"README.en.md",
"README.zh-TW.md",
"LICENSE",
"CHANGELOG.md"
],
"scripts": {
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true});require('fs').rmSync('dist-test',{recursive:true,force:true})\"",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm run clean && npm run build:esm && npm run build:cjs && node scripts/finalize.mjs",
"compile:tests": "tsc -p tsconfig.test.json",
"typecheck": "tsc --noEmit --strict --target ES2020 --lib ES2020 --module Preserve --moduleResolution Bundler --types node typecheck-demo.ts",
"test": "npm run compile:tests && node --test dist-test/tests/*.test.js",
"verify": "npm run build && npm run typecheck && npm run test && node scripts/smoke.mjs",
"prepublishOnly": "npm run build && npm run test"
},
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@types/node": "^22.20.1",
"typescript": "^7.0.2"
}
}