-
Notifications
You must be signed in to change notification settings - Fork 460
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
Build command in generated README.md does not work with Bun #614
Comments
Hi @Hornwitser 👍 Can you open a PR to fix this? We will gladly review and merge it! The readme generator is in create-vue/utils/generateReadme.ts Line 11 in 9201bdb
__test__ if you're up to it.
|
By fixing this, do you mean adding create-vue/utils/getCommand.ts Lines 9 to 11 in 9201bdb
What I will say is that while shortcuts like |
I don't think we want to add it for every command, you can just add it for if (scriptName === 'build') {
return packageManager === 'bun' ? 'bun run build' : `${packageManager} build`
} |
Describe the bug
When creating a project using
bun create vue
the generated readme contains the following instructions to runbun build
in order to compile and minify the project.But trying to run this gives a confusing error message
This doesn't work because Bun has a built-in
build
command which gets executed instead of thebuild
script defined in package.json.Expected behavior
The generated readme uses
bun run build
instead, as this will run the build script instead of the built-in bun bundler.How to reproduce
bun create vue
bun build
instead ofbun run build
bun build
gives an error message instead of invoking the build script.The text was updated successfully, but these errors were encountered: