Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bun build --compile output in wrong path #9048

Closed
andreszorro opened this issue Feb 22, 2024 · 2 comments
Closed

Bun build --compile output in wrong path #9048

andreszorro opened this issue Feb 22, 2024 · 2 comments
Labels
bug Something isn't working bundler Something to do with the bundler

Comments

@andreszorro
Copy link

What version of Bun is running?

1.0.28+705638470

What platform is your computer?

Darwin 23.3.0 arm64 arm

What steps can reproduce the bug?

  1. Having a simple file structure like this:
dist
main.ts
test.hbs
// main.ts
import text from "./test.hbs";
console.log(text);
  1. Run bun build ./main.ts --compile --outfile ./dist/main

What is the expected behavior?

The output file is correctly created in dist/main folder.

What do you see instead?

The output file is created adjacent to main.ts.

Additional information

This happens with other unsupported file extensions. This does not happen with txt file extension.

@andreszorro andreszorro added the bug Something isn't working label Feb 22, 2024
@Electroid Electroid added the bundler Something to do with the bundler label Feb 23, 2024
@masad-frost
Copy link

Probably duplicate of #8697

@Jarred-Sumner
Copy link
Collaborator

Duplicate of #8697

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #8697 Apr 19, 2024
@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bundler Something to do with the bundler
Projects
None yet
Development

No branches or pull requests

4 participants