Skip to content

Commit

Permalink
add TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-huang committed Dec 2, 2024
1 parent 469e2d9 commit 4cf8436
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ switch (command) {
await $`bun build ./src/main.ts --sourcemap --compile --outfile main-bun`;
break;
case "compile:linux-x64":
await $`bun build ./src/main.ts --sourcemap --compile --outfile main-bun-linux-x64`;
await $`bun build ./src/main.ts --target bun-linux-x64 --sourcemap --compile --outfile main-bun-linux-x64`;
break;
case "compile:linux-arm64":
await $`bun build ./src/main.ts --target bun-linux-arm64 --sourcemap --compile --outfile main-bun-linux-x64`;
break;
case "compile:windows-x64":
await $`bun build ./src/main.ts --sourcemap --compile --outfile main-bun-windows-x64`;
await $`bun build ./src/main.ts --target bun-windows-x64 --sourcemap --compile --outfile main-bun-windows-x64`;
break;
case "compile:darwin-x64":
await $`bun build ./src/main.ts --sourcemap --compile --outfile main-bun-darwin-x64`;
await $`bun build ./src/main.ts --target bun-darwin-x64 --sourcemap --compile --outfile main-bun-darwin-x64`;
break;
case "compile:darwin-arm64":
await $`bun build ./src/main.ts --sourcemap --compile --outfile main-bun-darwin-arm64`;
await $`bun build ./src/main.ts --target bun-darwin-arm64 --sourcemap --compile --outfile main-bun-darwin-arm64`;
break;
case "test":
await $`bun test`;
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "durian.js",
"version": "1.1.1",
"version": "1.1.2",
"description": "Run NestJS on Bun Blazingly Fast",
"author": "mario-huang",
"repository": "https://github.com/mario-huang/durian.js",
Expand Down

0 comments on commit 4cf8436

Please sign in to comment.