Skip to content

Commit aa4fe30

Browse files
Add CommonJS build output and update dependencies (#107)
- generate both ESM and CommonJS outputs and adjust package exports - upgraded some devDependencies - removeds the sample changeset I'd added - update workflow to not explicitly call build (since we do that with prepublish anyway)
1 parent 6e38f80 commit aa4fe30

File tree

5 files changed

+197
-312
lines changed

5 files changed

+197
-312
lines changed

.changeset/good-glasses-see.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/kind-carrots-flash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"capnweb": patch
3+
---
4+
5+
chore: generate commonjs build

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ jobs:
2525

2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 24 # includes npm 11.5.1 or later, needed for trusted publishing
28+
node-version: 24 # includes npm 11.5.1 or later, needed for trusted publishing
2929
cache: "npm"
3030

3131
- run: npm ci
32-
- run: npm run build
3332

3433
- id: changesets
3534
uses: changesets/action@v1
@@ -55,14 +54,12 @@ jobs:
5554

5655
- uses: actions/setup-node@v4
5756
with:
58-
node-version: 24 # includes npm 11.5.1 or later, needed for trusted publishing
57+
node-version: 24 # includes npm 11.5.1 or later, needed for trusted publishing
5958
cache: "npm"
6059

6160
- run: npm ci
6261

6362
- name: Modify package.json version
6463
run: npx tsx .github/version-script.ts
6564

66-
- run: npm run build
67-
6865
- run: npm publish --tag beta

0 commit comments

Comments
 (0)