zod-sqlite 0.1.0-alpha.1 → 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +12 -14
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ This tool bridges the gap between Zod schemas and SQLite database definitions. I
|
|
|
41
41
|
## Installation
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
npm install zod-
|
|
44
|
+
npm install zod-sqlite
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Requires Zod v4 as a peer dependency:
|
|
@@ -55,7 +55,7 @@ npm install zod@^4.0.0
|
|
|
55
55
|
Here's a simple example creating a users table:
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
|
-
import { createTable } from 'zod-
|
|
58
|
+
import { createTable } from 'zod-sqlite'
|
|
59
59
|
import { z } from 'zod'
|
|
60
60
|
|
|
61
61
|
const users = createTable({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-sqlite",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Generate type-safe SQLite table schemas from Zod validation schemas.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
@@ -40,17 +40,6 @@
|
|
|
40
40
|
"LICENSE"
|
|
41
41
|
],
|
|
42
42
|
"sideEffects": false,
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "pnpm clean && tsup",
|
|
45
|
-
"dev": "tsup --watch",
|
|
46
|
-
"test": "vitest",
|
|
47
|
-
"typecheck": "tsc --noEmit",
|
|
48
|
-
"lint": "eslint src --ext .ts --fix",
|
|
49
|
-
"clean": "rm -rf dist",
|
|
50
|
-
"prepublishOnly": "pnpm build && pnpm typecheck && pnpm vitest --watch=false",
|
|
51
|
-
"release": "pnpm build && pnpm dlx @changesets/cli publish"
|
|
52
|
-
},
|
|
53
|
-
"packageManager": "pnpm@10.26.1",
|
|
54
43
|
"devDependencies": {
|
|
55
44
|
"@changesets/cli": "^2.29.8",
|
|
56
45
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
@@ -78,5 +67,14 @@
|
|
|
78
67
|
"schema",
|
|
79
68
|
"validation",
|
|
80
69
|
"zod-to-sqlite"
|
|
81
|
-
]
|
|
82
|
-
|
|
70
|
+
],
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "pnpm clean && tsup",
|
|
73
|
+
"dev": "tsup --watch",
|
|
74
|
+
"test": "vitest",
|
|
75
|
+
"typecheck": "tsc --noEmit",
|
|
76
|
+
"lint": "eslint src --ext .ts --fix",
|
|
77
|
+
"clean": "rm -rf dist",
|
|
78
|
+
"release": "pnpm build && pnpm dlx @changesets/cli publish"
|
|
79
|
+
}
|
|
80
|
+
}
|