Skip to content

Commit

Permalink
feat: support Bun (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Oct 24, 2023
1 parent 1965c44 commit 2011f6b
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 @@ -11,6 +11,11 @@ const semver = require("semver");
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 2011f6b

Please sign in to comment.