Skip to content

Commit 7be89db

Browse files
committed
chore: initial a npm project
1 parent be01097 commit 7be89db

6 files changed

Lines changed: 2073 additions & 0 deletions

File tree

biome.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "tab",
14+
"indentWidth": 2,
15+
"lineWidth": 80,
16+
"lineEnding": "lf",
17+
"formatWithErrors": true
18+
},
19+
"linter": {
20+
"enabled": true,
21+
"rules": {
22+
"recommended": true
23+
}
24+
},
25+
"javascript": {
26+
"formatter": {
27+
"quoteStyle": "single"
28+
}
29+
},
30+
"assist": {
31+
"enabled": true,
32+
"actions": {
33+
"source": {
34+
"organizeImports": "on"
35+
}
36+
}
37+
}
38+
}

package.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"name": "valikit",
3+
"version": "0.0.1",
4+
"license": "MIT",
5+
"description": "Common validators for Zod, Valibot and more - with familiar syntax (zk.slug(), vk.slug())",
6+
"types": "./dist/index.d.ts",
7+
"main": "./dist/index.js",
8+
"module": "./dist/index.mjs",
9+
"author": "Navidtm <navidt81@gmail.com>",
10+
"packageManager": "pnpm@10.24.0",
11+
"sideEffects": false,
12+
"private": false,
13+
"files": [
14+
"dist",
15+
"README.md",
16+
"LICENSE"
17+
],
18+
"scripts": {
19+
"dev": "tsdown --watch",
20+
"build": "tsdown",
21+
"build:clean": "tsdown --clean && tsdown",
22+
"test": "vitest",
23+
"test:watch": "vitest --watch",
24+
"test:run": "vitest run",
25+
"test:coverage": "vitest run --coverage",
26+
"typecheck": "tsc --noEmit",
27+
"format": "biome format --write",
28+
"lint": "biome lint --fix",
29+
"check": "biome check --write",
30+
"prepublish": "pnpm run build:clean && pnpm run typecheck && pnpm run test:run",
31+
"bump": "changelogen --bump",
32+
"release": "changelogen --release"
33+
},
34+
"repository": {
35+
"type": "git",
36+
"url": "git+https://github.com/Navidtm/valikit.git"
37+
},
38+
"bugs": {
39+
"url": "https://github.com/Navidtm/valikit/issues"
40+
},
41+
"homepage": "https://github.com/Navidtm/valikit#readme",
42+
"engines": {
43+
"node": ">=20.19.0"
44+
},
45+
"publishConfig": {
46+
"access": "public"
47+
},
48+
"keywords": [
49+
"validation",
50+
"schema",
51+
"typescript",
52+
"utils",
53+
"extensions",
54+
"zod",
55+
"valibot"
56+
],
57+
"exports": {
58+
".": {
59+
"types": "./dist/index.d.ts",
60+
"import": "./dist/index.mjs",
61+
"require": "./dist/index.js"
62+
},
63+
"./zk": {
64+
"types": "./dist/zk/index.d.ts",
65+
"import": "./dist/zk/index.mjs",
66+
"require": "./dist/zk/index.js"
67+
},
68+
"./vk": {
69+
"types": "./dist/vk/index.d.ts",
70+
"import": "./dist/vk/index.mjs",
71+
"require": "./dist/vk/index.js"
72+
},
73+
"./package.json": "./package.json"
74+
},
75+
"devDependencies": {
76+
"@biomejs/biome": "2.3.10",
77+
"@types/node": "^22.19.0",
78+
"changelogen": "^0.6.2",
79+
"tsdown": "^0.18.2",
80+
"typescript": "^5.9.3",
81+
"vitest": "^4.0.16"
82+
},
83+
"peerDependencies": {
84+
"valibot": "^0.31.0 || ^1.0.0",
85+
"zod": "^3.25.0 || ^4.0.0"
86+
},
87+
"peerDependenciesMeta": {
88+
"zod": {
89+
"optional": true
90+
},
91+
"valibot": {
92+
"optional": true
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)