Skip to content

Commit

Permalink
build: add bun to dev deps and dockerfile (#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Nov 10, 2023
1 parent b2d2aa7 commit 7b3181b
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="${PATH}:${PNPM_HOME}"
RUN npm install pnpm --global && pnpm --version

# bun
ENV BUN_INSTALL="${HOME}/.bun"
ENV PATH="${PATH}:${BUN_INSTALL}/bin"
RUN npm install bun --global && bun --version

FROM base AS mud
COPY . /app
WORKDIR /app
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean": "turbo run clean",
"dev": "turbo run dev --concurrency 100",
"dist-tag-rm": "pnpm recursive exec -- sh -c 'npm dist-tag rm $(cat package.json | jq -r \".name\") $TAG || true'",
"docs:generate:api": "pnpx bun@0.7.3 scripts/render-api-docs.ts",
"docs:generate:api": "bun scripts/render-api-docs.ts",
"foundryup": "curl -L https://foundry.paradigm.xyz | bash && bash ~/.foundry/bin/foundryup",
"gas-report": "pnpm run --recursive --parallel gas-report",
"lint": "pnpm prettier:check && eslint . --ext .ts --ext .tsx",
Expand All @@ -21,7 +21,7 @@
"prettier:check": "prettier --check '**/*.{ts,tsx,css,md,mdx,sol}'",
"release:check": "changeset status --verbose --since=origin/main",
"release:publish": "pnpm install && pnpm build && changeset publish",
"release:version": "changeset version && pnpm install --lockfile-only && pnpx bun@0.7.3 scripts/changelog.ts",
"release:version": "changeset version && pnpm install --lockfile-only && bun scripts/changelog.ts",
"sort-package-json": "npx sort-package-json package.json 'packages/*/package.json' 'templates/*/package.json' 'templates/*/packages/*/package.json' 'examples/*/package.json' 'examples/*/packages/*/package.json' 'e2e/*/package.json' 'e2e/*/packages/*/package.json' 'docs/package.json'",
"test": "pnpm run --recursive --filter=!@latticexyz/services test",
"test:ci": "pnpm run --recursive --parallel --filter=!@latticexyz/services test:ci"
Expand All @@ -36,6 +36,7 @@
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
"bun": "^1.0.11",
"chalk": "^5.2.0",
"eslint": "8.29.0",
"execa": "^7.0.0",
Expand Down
66 changes: 66 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b3181b

Please sign in to comment.