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

build: add bun to dev deps and dockerfile #1902

Merged
merged 3 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.