-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
80 lines (80 loc) · 2.42 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
{
"name": "capnp-es",
"version": "0.0.7",
"description": "TypeScript implementation of the Cap'n Proto serialization.",
"repository": "unjs/capnp-es",
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./compiler": {
"types": "./dist/compiler/index.d.mts",
"default": "./dist/compiler/index.mjs"
},
"./capnp/*": {
"types": "./dist/capnp/*.d.mts",
"default": "./dist/capnp/*.mjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"bin": {
"capnp-es": "./dist/compiler/main.mjs"
},
"files": [
"dist"
],
"scripts": {
"bench:bun": "bun run ./test/bench/bench.ts",
"bench:node": "node --import jiti/register ./test/bench/bench.ts",
"build": "pnpm build:std && unbuild",
"build:std": "unbuild --stub && pnpm capnp-es src/capnp/_capnp/*.capnp --src-prefix=src/capnp/_capnp -ots:./src/capnp && prettier -w ./src/capnp",
"capnp-es": "node --import jiti/register ./src/compiler/main.ts",
"dev": "vitest dev",
"lint": "eslint . && prettier -c .",
"lint:fix": "automd && eslint . --fix && prettier -w .",
"prepack": "pnpm build",
"play": "pnpm capnp-es -ots,js,dts playground/*.capnp",
"profile:bun": "bun run ./test/bench/profile.ts",
"profile:node": "node --cpu-prof --import jiti/register ./test/bench/profile.ts",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && vitest run --coverage && pnpm test:types",
"test:types": "tsc --noEmit --skipLibCheck"
},
"devDependencies": {
"@types/benchmark": "^2.1.5",
"@types/hex2dec": "^1.1.4",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^3.0.4",
"automd": "^0.3.12",
"benchmark": "^2.1.4",
"capnp-ts": "^0.7.0",
"changelogen": "^0.5.7",
"esbuild": "^0.24.2",
"eslint": "^9.19.0",
"eslint-config-unjs": "^0.4.2",
"hex2dec": "^1.1.2",
"jiti": "^2.4.2",
"mitata": "^1.0.32",
"prettier": "^3.4.2",
"protobufjs": "^7.4.0",
"typescript": "^5.7.3",
"unbuild": "^3.3.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.4"
},
"peerDependencies": {
"typescript": "^5.7.3"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"packageManager": "[email protected]"
}