@kunk/model 3.0.2 → 3.0.5

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/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@kunk/model",
3
- "version": "3.0.2",
3
+ "version": "3.0.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
7
7
  "module": "./src/index.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "scripts": {
9
12
  "build": "tsdown",
10
13
  "version:patch": "bun pm version patch",
@@ -13,6 +16,13 @@
13
16
  "dependencies": {
14
17
  "zod": "^4.3.6"
15
18
  },
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js",
23
+ "default": "./dist/index.js"
24
+ }
25
+ },
16
26
  "publishConfig": {
17
27
  "access": "public"
18
28
  }
@@ -1,13 +0,0 @@
1
-
2
- $ tsdown
3
- ℹ tsdown v0.20.3 powered by rolldown v1.0.0-rc.3
4
- ℹ config file: /Users/ag/auxo/kunk/packages/model/tsdown.config.ts
5
- ℹ entry: src/index.ts
6
- ℹ tsconfig: ../../tsconfig.json
7
- ℹ Build start
8
- ℹ Cleaning 3 files
9
- ℹ dist/index.mjs 0.92 kB │ gzip: 0.45 kB
10
- ℹ dist/chunk-q_BqMMLn.mjs 0.21 kB │ gzip: 0.17 kB
11
- ℹ dist/index.d.mts 1.36 kB │ gzip: 0.56 kB
12
- ℹ 3 files, total: 2.48 kB
13
- ✔ Build complete in 973ms
File without changes
@@ -1,4 +0,0 @@
1
-
2
- $ bun pm version patch
3
- [0.61ms] ".env"
4
- v3.0.2
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # @kunk/model
2
-
3
- ## 3.0.0
4
-
5
- ### Major Changes
6
-
7
- - version 2
package/src/T.ts DELETED
@@ -1,34 +0,0 @@
1
- import z from "zod/v4";
2
-
3
- export function ref<T extends readonly string[]>(...resource: T) {
4
- return z.object({
5
- resource: z.enum(resource),
6
- id: z.string()
7
- })
8
- }
9
-
10
- export const object = z.object
11
- export const array = z.array
12
- export const uuid = z.uuid
13
- export const any = z.any
14
- export const record = z.record
15
- export const tuple = z.tuple
16
- export const union = z.union
17
- export const intersection = z.intersection
18
- export const literal = z.literal
19
- export const date = z.date
20
- export const iso = z.iso
21
- export const boolean = z.boolean
22
- export const number = z.number
23
- export const string = z.string
24
- export const codec = z.codec
25
- export const discriminatedUnion = z.discriminatedUnion
26
-
27
-
28
- export const toJSONSchema = z.toJSONSchema
29
-
30
-
31
- export const ModelError = z.ZodError
32
-
33
- const _enum = z.enum
34
- export { _enum as enum }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * as T from "./T"
package/tsdown.config.ts DELETED
@@ -1,15 +0,0 @@
1
- import { defineConfig } from 'tsdown'
2
-
3
- export default defineConfig({
4
- entry: [
5
- './src/index.ts'
6
- ],
7
- external: [
8
- "drizzle-orm",
9
- "drizzle-sdk",
10
- ],
11
- dts: true,
12
- minify: {
13
- mangle: true,
14
- }
15
- })