capnweb 0.0.0-e3fa093 → 0.0.0-ee7ca6f

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,6 +1,6 @@
1
1
  {
2
2
  "name": "capnweb",
3
- "version": "0.0.0-e3fa093",
3
+ "version": "0.0.0-ee7ca6f",
4
4
  "description": "JavaScript/TypeScript-native RPC library with Promise Pipelining",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,26 +11,37 @@
11
11
  ],
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": {
16
- "workerd": "./dist/index-workers.js",
17
- "default": "./dist/index.js"
14
+ "workerd": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index-workers.js",
17
+ "require": "./dist/index-workers.cjs"
18
+ },
19
+ "bun": {
20
+ "types": "./dist/index-bun.d.ts",
21
+ "import": "./dist/index-bun.js",
22
+ "require": "./dist/index-bun.cjs"
18
23
  },
19
- "require": {
20
- "workerd": "./dist/index-workers.cjs",
21
- "default": "./dist/index.cjs"
22
- }
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js",
26
+ "require": "./dist/index.cjs"
23
27
  }
24
28
  },
25
29
  "type": "module",
26
30
  "publishConfig": {
27
31
  "access": "public"
28
32
  },
33
+ "workspaces": [
34
+ ".",
35
+ "packages/*"
36
+ ],
29
37
  "scripts": {
30
- "build": "tsup --format esm,cjs",
31
- "build:watch": "tsup --watch --format esm,cjs",
38
+ "build": "tsdown --config-loader native && npm run -w capnweb-validate build",
39
+ "build:watch": "tsdown --config-loader native --watch",
32
40
  "test": "vitest run",
41
+ "test:bun": "bun test __tests__/bun.test.ts",
42
+ "test:ci": "vitest run && bun test __tests__/bun.test.ts",
33
43
  "test:watch": "vitest",
44
+ "test:types": "tsc -p __type-tests__/tsconfig.json --noEmit",
34
45
  "prepublishOnly": "npm run build"
35
46
  },
36
47
  "devDependencies": {
@@ -38,11 +49,12 @@
38
49
  "@changesets/cli": "^2.29.8",
39
50
  "@cloudflare/vitest-pool-workers": "^0.12.10",
40
51
  "@cloudflare/workers-types": "^4.20260205.0",
52
+ "@types/bun": "^1.2.0",
41
53
  "@types/ws": "^8.18.1",
42
54
  "@vitest/browser": "^3.2.4",
43
55
  "pkg-pr-new": "^0.0.60",
44
56
  "playwright": "^1.56.1",
45
- "tsup": "^8.5.1",
57
+ "tsdown": "^0.22.0",
46
58
  "tsx": "^4.21.0",
47
59
  "typescript": "^5.9.3",
48
60
  "vitest": "^3.2.4",