Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions build/bun.lock

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

12 changes: 12 additions & 0 deletions build/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "@poolifier/poolifier-web-worker-build",
"version": "0.0.0",
"description": "Build-only dependencies",
"private": true,
"type": "module",
"dependencies": {
"bun-plugin-dts": "^0.4.0",
"dts-bundle-generator": "^9.5.1",
"typescript": "^5.9.3"
}
}
12 changes: 12 additions & 0 deletions bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ import { baseBuildDir } from './build/config.ts'
Deno.copyFileSync('LICENSE', `${baseBuildDir}/LICENSE`)
Deno.copyFileSync('README.md', `${baseBuildDir}/README.md`)

console.time('Bun install time')
const bunInstall = new Deno.Command('bun', {
args: ['install', '--cwd', './build', '--no-progress', '--no-summary'],
})
const bunInstallCommandOutput = bunInstall.outputSync()
if (bunInstallCommandOutput.success === false) {
const errMsg = new TextDecoder().decode(bunInstallCommandOutput.stderr)
console.error(errMsg)
throw new Error(`Bun install failed: ${errMsg}`)
}
console.timeEnd('Bun install time')

console.time('Browser build time')
const browserBuild = new Deno.Command('bun', {
args: ['run', './build/browser-build.ts'],
Expand Down
Loading