Skip to content

Commit

Permalink
feat: support Bun (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Oct 24, 2023
1 parent b51be39 commit 270a0d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# We don't want lockfiles in stacks, as people could use a different package manager
# This part will be removed by `remix.init`
bun.lockb
package-lock.json
yarn.lock
pnpm-lock.yaml
pnpm-lock.yml
yarn.lock

node_modules

Expand Down
5 changes: 5 additions & 0 deletions remix.init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ const escapeRegExp = (string) =>
const getPackageManagerCommand = (packageManager) =>
// Inspired by https://github.com/nrwl/nx/blob/bd9b33eaef0393d01f747ea9a2ac5d2ca1fb87c6/packages/nx/src/utils/package-manager.ts#L38-L103
({
bun: () => ({
exec: "bunx",
lockfile: "bun.lockb",
run: (script, args) => `bun run ${script} ${args || ""}`,
}),
npm: () => ({
exec: "npx",
lockfile: "package-lock.json",
Expand Down

0 comments on commit 270a0d4

Please sign in to comment.