Skip to content

Commit a1d79a7

Browse files
committed
feat: make multiplexer ready for publication
1 parent e160e6d commit a1d79a7

File tree

5 files changed

+63
-3
lines changed

5 files changed

+63
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Build packages
2626
run: |
27+
bun run --cwd packages/events build
28+
bun run --cwd packages/multiplexer build
2729
bun run --cwd packages/compute-protocol build
2830
bun run --cwd packages/compute build
2931
bun run --cwd packages/github build

packages/events/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
"name": "@blink-sdk/events",
33
"private": true,
44
"type": "module",
5+
"scripts": {
6+
"build": "tsdown"
7+
},
58
"exports": {
6-
".": "./src/events.ts"
9+
".": {
10+
"import": "./dist/events.js",
11+
"types": "./dist/events.d.ts",
12+
"default": "./dist/events.cjs"
13+
}
714
}
815
}

packages/events/tsdown.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from "tsdown";
2+
3+
export default defineConfig({
4+
entry: ["./src/events.ts"],
5+
platform: "node",
6+
format: ["esm", "cjs"],
7+
dts: true,
8+
outputOptions: {
9+
inlineDynamicImports: true,
10+
},
11+
});

packages/multiplexer/package.json

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,38 @@
11
{
22
"name": "@blink-sdk/multiplexer",
3-
"private": true,
3+
"description": "High-performance stream multiplexer for the Blink SDK.",
4+
"version": "0.0.1",
45
"type": "module",
6+
"keywords": [
7+
"blink",
8+
"multiplexer",
9+
"stream"
10+
],
11+
"publishConfig": {
12+
"access": "public"
13+
},
14+
"author": "Coder",
15+
"license": "MIT",
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/coder/blink.git"
19+
},
20+
"homepage": "https://github.com/coder/blink/tree/main/packages/multiplexer",
21+
"bugs": {
22+
"url": "https://github.com/coder/blink/issues"
23+
},
24+
"files": [
25+
"dist"
26+
],
27+
"scripts": {
28+
"build": "tsdown"
29+
},
530
"exports": {
6-
".": "./src/multiplexer.ts"
31+
".": {
32+
"import": "./dist/multiplexer.js",
33+
"types": "./dist/multiplexer.d.ts",
34+
"default": "./dist/multiplexer.cjs"
35+
}
736
},
837
"devDependencies": {
938
"@blink-sdk/events": "workspace:*"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from "tsdown";
2+
3+
export default defineConfig({
4+
entry: ["./src/multiplexer.ts"],
5+
platform: "node",
6+
format: ["esm", "cjs"],
7+
dts: true,
8+
outputOptions: {
9+
inlineDynamicImports: true,
10+
},
11+
});

0 commit comments

Comments
 (0)