-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
106 lines (106 loc) · 2.91 KB
/
package.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "@the-minimal/protocol",
"type": "module",
"version": "0.2.0",
"license": "MIT",
"author": "Miroslav Vršecký <[email protected]>",
"description": "Minimal JSON-like binary schema-full protocol for JS/TS with BYO runtime data validations",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"default": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"types": {
"import": {
"types": "./dist/types.d.ts",
"default": "./dist/types.js"
}
},
"encode": {
"import": {
"types": "./dist/encode.d.ts",
"default": "./dist/encode.js"
}
},
"decode": {
"import": {
"types": "./dist/decode.d.ts",
"default": "./dist/decode.js"
}
},
"estimate": {
"import": {
"types": "./dist/estimate.d.ts",
"default": "./dist/estimate.js"
}
}
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/the-minimal/protocol.git",
"directory": "src"
},
"keywords": [
"json",
"protocol",
"protocol-buffers",
"bson",
"jsonb",
"binary-protocol",
"binary-json",
"avro",
"javascript",
"typescript"
],
"homepage": "https://github.com/the-minimal/protocol",
"bugs": {
"url": "https://github.com/the-minimal/protocol/issues"
},
"scripts": {
"prepublishOnly": "bun run check && bun run build && bun run test",
"release": "release-it",
"build": "bun build:clean && bun build:terser && bun build:stats && bun build:index && bun build:dts",
"build:clean": "rm -rf dist",
"build:terser": "bun run scripts/build.ts",
"build:dts": "bun build:dts:index && bun build:dts:encode && bun build:dts:decode && bun build:dts:types && bun build:dts:estimate",
"build:dts:index": "cp src/index.d.ts dist/index.d.ts",
"build:dts:encode": "cp src/encode.d.ts dist/encode.d.ts",
"build:dts:decode": "cp src/decode.d.ts dist/decode.d.ts",
"build:dts:types": "cp src/types.d.ts dist/types.d.ts",
"build:dts:estimate": "cp src/estimate.d.ts dist/estimate.d.ts",
"build:index": "cp src/index.js dist/index.js",
"build:stats": "bun run scripts/stats.ts",
"test": "vitest run --typecheck",
"test:coverage": "vitest run --coverage",
"check": "bunx @biomejs/biome check --apply ./"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@fast-check/vitest": "0.1.1",
"@types/bun": "latest",
"@vitest/coverage-v8": "1.6.0",
"release-it": "17.2.1",
"terser": "5.31.0",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
},
"peerDependencies": {
"typescript": "5.4.5"
},
"dependencies": {
"@the-minimal/error": "0.1.1"
}
}