Skip to content

Commit 390f9bb

Browse files
committed
chore: update release workflow, bump version to 1.3.5, and add tsdown configuration
1 parent f20c568 commit 390f9bb

6 files changed

Lines changed: 149 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
release:
1414
runs-on: ubuntu-latest
15-
15+
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
@@ -21,18 +21,22 @@ jobs:
2121
uses: oven-sh/setup-bun@v1
2222
with:
2323
bun-version: latest
24-
24+
2525
- name: Install dependencies
26-
run: bun install
26+
run: \
27+
bun install --frozen-lockfile
28+
cp src/miniz.h dist/
29+
cp src/miniz.c dist/
30+
cp src/zip_wrapper.c dist/
2731

2832
- name: Setup Node.js
2933
uses: actions/setup-node@v4
3034
with:
31-
node-version: '18'
35+
node-version: '22'
3236
registry-url: 'https://registry.npmjs.org'
3337

3438
- name: Publish to npm
35-
run: npm publish
39+
run: bun publish
3640
env:
3741
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3842

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
17-
node-version: [20]
17+
node-version: [22]
1818

1919
steps:
2020
- name: Checkout code

bun.lock

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zip-bun",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "A high-performance zip archive library for Bun with native C bindings",
55
"main": "dist/index.js",
66
"type": "module",
@@ -14,7 +14,7 @@
1414
"test:coverage": "bun test --coverage",
1515
"lint": "biome check",
1616
"lint:write": "biome check --write",
17-
"build": "bun build src/index.ts --outdir dist --target bun --sourcemap=linked"
17+
"build": "tsdown"
1818
},
1919
"keywords": [
2020
"zip",
@@ -42,7 +42,8 @@
4242
},
4343
"devDependencies": {
4444
"@biomejs/biome": "2.2.2",
45-
"@types/bun": "latest"
45+
"@types/bun": "latest",
46+
"tsdown": "^0.16.4"
4647
},
4748
"peerDependencies": {
4849
"typescript": "^5"

test_directory/file2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"key": "value"}
1+
{ "key": "value" }

tsdown.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from "tsdown";
2+
3+
export default defineConfig({
4+
entry: "src/index.ts",
5+
format: "esm",
6+
dts: true,
7+
external: ["bun", "bun:ffi"],
8+
});

0 commit comments

Comments
 (0)