Skip to content

Commit 0d0d6e1

Browse files
chore: wip
1 parent 54e1824 commit 0d0d6e1

10 files changed

Lines changed: 66 additions & 59 deletions

File tree

bun.lock

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stacksjs/dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"private": true,
66
"description": "A modern, fast .d.ts generation tool, powered by Bun.",
77
"author": "Chris Breuer <chris@stacksjs.org>",

packages/bun-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bun-plugin-dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"description": "A Bun Bundler plugin that auto generates your DTS types extremely fast.",
66
"author": "Chris Breuer <chris@ow3.org>",
77
"license": "MIT",

packages/dtsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stacksjs/dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"description": "A modern, fast .d.ts generation tool, powered by Bun.",
66
"author": "Chris Breuer <chris@stacksjs.org>",
77
"license": "MIT",

packages/esbuild-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "esbuild-plugin-dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"description": "An esbuild plugin that auto generates your DTS types extremely fast.",
66
"author": "Chris Breuer <chris@ow3.org>",
77
"license": "MIT",

packages/tsup-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tsup-plugin-dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"description": "A tsup plugin that auto generates your DTS types extremely fast.",
66
"author": "Chris Breuer <chris@ow3.org>",
77
"license": "MIT",

packages/vite-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-plugin-dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"private": true,
66
"description": "A modern, fast .d.ts generation tool, powered by Bun.",
77
"author": "Chris Breuer <chris@stacksjs.org>",

packages/webpack-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webpack-plugin-dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"description": "A webpack plugin that auto generates your DTS types extremely fast.",
66
"author": "Chris Breuer <chris@ow3.org>",
77
"license": "MIT",

packages/zig-dtsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stacksjs/zig-dtsx",
33
"type": "module",
4-
"version": "0.9.10",
4+
"version": "0.9.9",
55
"description": "High-performance DTS emitter written in Zig",
66
"exports": {
77
".": {

packages/zig-dtsx/src/main.zig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,14 @@ fn workerFn(ctx: WorkerCtx) void {
243243
_ = arena.reset(.retain_capacity);
244244
continue;
245245
}
246-
var st: c.struct_stat = undefined;
247-
if (c.fstat(fd, &st) < 0) {
246+
const end_off = c.lseek(fd, 0, 2); // SEEK_END
247+
if (end_off < 0) {
248248
_ = c.close(fd);
249249
_ = arena.reset(.retain_capacity);
250250
continue;
251251
}
252-
const size: usize = @intCast(st.st_size);
252+
_ = c.lseek(fd, 0, 0); // SEEK_SET
253+
const size: usize = @intCast(end_off);
253254
const buf = alloc.alloc(u8, size) catch {
254255
_ = c.close(fd);
255256
_ = arena.reset(.retain_capacity);

0 commit comments

Comments
 (0)