File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 - name : Install dependencies
2626 run : bun install
2727
28- - name : Build package
29- run : bun run build
30-
3128 - name : Setup Node.js
3229 uses : actions/setup-node@v4
3330 with :
Original file line number Diff line number Diff line change 4242 flags : unittests
4343 name : codecov-umbrella
4444 fail_ci_if_error : false
45-
46- lint :
47- name : Lint
48- runs-on : ubuntu-latest
49-
50- steps :
51- - name : Checkout code
52- uses : actions/checkout@v4
53-
54- - name : Setup Bun
55- uses : oven-sh/setup-bun@v2
56- with :
57- bun-version : latest
58-
59- - name : Install dependencies
60- run : bun install
61-
62- - name : Run linter
63- run : bun run lint
64-
65- build :
66- name : Build
67- runs-on : ubuntu-latest
68-
69- steps :
70- - name : Checkout code
71- uses : actions/checkout@v4
72-
73- - name : Setup Bun
74- uses : oven-sh/setup-bun@v2
75- with :
76- bun-version : latest
77-
78- - name : Install dependencies
79- run : bun install
80-
81- - name : Build project
82- run : bun run build
Original file line number Diff line number Diff line change 11{
22 "name" : " zip-bun" ,
3- "version" : " 0.1.0 " ,
3+ "version" : " 0.1.1 " ,
44 "description" : " A high-performance zip archive library for Bun with native C bindings" ,
5- "main" : " dist/index.js" ,
6- "module" : " dist/index.js" ,
7- "types" : " dist/index.d.ts" ,
5+ "main" : " src/index.ts" ,
86 "type" : " module" ,
97 "files" : [
10- " dist "
8+ " src "
119 ],
1210 "scripts" : {
13- "build" : " bun scripts/build.ts" ,
1411 "test" : " bun test" ,
1512 "test:coverage" : " bun test --coverage"
1613 },
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { cc , ptr , read } from "bun:ffi" ;
22
3- import { content } from './zip_wrapper' with { type : 'macro' } ;
3+ import { join } from "node:path" ;
44
5- const zipSource = content ( ) ;
5+ const includePath = import . meta. dir ;
6+ const wrapperPath = join ( includePath , "zip_wrapper.c" ) ;
67
78// Compile the C code with all the zip functions
89const {
@@ -20,7 +21,8 @@ const {
2021 free_extracted_data,
2122 } ,
2223} = cc ( {
23- source : zipSource ,
24+ source : wrapperPath ,
25+ include : [ includePath ] ,
2426 symbols : {
2527 create_zip : {
2628 args : [ "cstring" ] ,
You can’t perform that action at this time.
0 commit comments