Skip to content

Commit

Permalink
chore: add @bun/types
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 5, 2024
1 parent a7fdafc commit f7c9591
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
5 changes: 3 additions & 2 deletions examples/child-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"test-e2e": "playwright test",
"test-e2e-preview": "E2E_PREVIEW=1 playwright test"
},
"dependencies": {},
"devDependencies": {},
"devDependencies": {
"@types/bun": "^1.1.10"
},
"volta": {
"extends": "../../package.json"
}
Expand Down
1 change: 0 additions & 1 deletion examples/child-process/src/lib/vite/runtime/bun.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ async function main() {
return mod.default(new Request(meta.url, { ...request, headers }));
}

// @ts-ignore
const server = Bun.serve({ port: 0, fetch: handler });
await bridgeRpc("register", `http://localhost:${server.port}`);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/child-process/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"module": "ESNext",
"target": "ESNext",
"lib": ["ESNext", "DOM"],
"types": ["vite/client", "react/experimental"],
"types": ["vite/client", "react/experimental", "@types/bun"],
"jsx": "react-jsx"
}
}
35 changes: 34 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f7c9591

Please sign in to comment.