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

Support for Bun #13

Open
howmanysmall opened this issue Mar 2, 2024 · 4 comments · May be fixed by #15
Open

Support for Bun #13

howmanysmall opened this issue Mar 2, 2024 · 4 comments · May be fixed by #15

Comments

@howmanysmall
Copy link

Bun is just a much faster installer than NPM, PNPM, or Yarn, but it also only supports Unix systems.

It's really nice to use it over the other ones because it makes the installation process take way less time (6.35x faster than pnpm and over 8x faster than npm or yarn on my machine).

There's one drawback besides the obvious Unix only support and that's the fact that bun init -y creates more than just a package.json file, so you'd have to rm -rf the extra files it creates.

@howmanysmall
Copy link
Author

My current setup for it looks a bit like:

	[PackageManager.Bun]: {
		// Sorry, this is a hack for now
		// bun init always creates the extra files when we really just want
		// package.json. ):

		// Bun also only currently supports Linux, so we'll just assume
		// rm -rf will work.
		init: "bun init -y && rm -rf index.ts .gitignore tsconfig.json README.md",
		devInstall: "bun install --silent -d",
		build: "bun run build",
	},

@Dionysusnu
Copy link

Dionysusnu commented Mar 2, 2024

See also roblox-ts/roblox-ts#2485

@howmanysmall
Copy link
Author

that version unfortunately wouldn't work

@acopier acopier linked a pull request May 6, 2024 that will close this issue
@acopier
Copy link

acopier commented May 9, 2024

Until my PR is merged, you can use bun create @acopier/roblox-ts --packageManager bun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants