Skip to content

Commit

Permalink
init commit - replace pnpm with bun
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Jan 27, 2025
1 parent cb1efdb commit 6e9f246
Show file tree
Hide file tree
Showing 206 changed files with 888 additions and 82,853 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM $BASE_IMAGE

ENV DEBIAN_FRONTEND=noninteractive

# Install pnpm globally and install necessary build tools
# Install bun globally and install necessary build tools
RUN apt-get update \
&& apt-get install -y \
git \
Expand All @@ -17,7 +17,7 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

ARG PNPM_VER=9.15.2
RUN npm install -g pnpm@${PNPM_VER}
RUN npm install -g bun@${PNPM_VER}

# Set Python 3 as the default python
RUN ln -s /usr/bin/python3 /usr/bin/python
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@ jobs:
TURBO_REMOTE_ONLY: true
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
- uses: oven-sh/setup-bun@v2

- uses: actions/setup-node@v4
with:
node-version: "23"
cache: "pnpm"
cache: "bun"

- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile
run: bun install

- name: Setup Biome CLI
uses: biomejs/setup-biome@v2
Expand All @@ -41,10 +38,10 @@ jobs:
echo "NODE_ENV=test" >> packages/core/.env.test
- name: Run tests
run: cd packages/core && pnpm test:coverage
run: cd packages/core && bun test:coverage

- name: Build packages
run: pnpm run build
run: bun run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
- uses: oven-sh/setup-bun@v2

- uses: actions/setup-node@v4
with:
node-version: "23.3"
cache: "pnpm"
node-version: "23"
cache: "bun"

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: bun install

- name: Build packages
run: pnpm build
run: bun run build

- name: Check for API key
run: |
Expand All @@ -41,4 +39,4 @@ jobs:
fi
- name: Run integration tests
run: pnpm run integrationTests
run: bun run integrationTests
23 changes: 10 additions & 13 deletions .github/workflows/jsdoc-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,39 +55,36 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "23"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Install bun
- uses: oven-sh/setup-bun@v2

- name: Update lockfile
working-directory: scripts/jsdoc-automation
run: |
echo "Updating lockfile..."
pnpm install --no-frozen-lockfile
bun install
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add pnpm-lock.yaml
git commit -m "chore: update pnpm lockfile" || echo "No changes to commit"
git add bun.lockb
git commit -m "chore: update bun lockfile" || echo "No changes to commit"
git push || echo "No changes to push"
- name: Install root dependencies
run: pnpm install --no-frozen-lockfile
run: bun install

- name: Install package dependencies
working-directory: scripts/jsdoc-automation
run: pnpm install --no-frozen-lockfile
run: bun install

- name: Build TypeScript
working-directory: scripts/jsdoc-automation
run: pnpm build
run: bun run build

- name: Run documentation generator
working-directory: scripts/jsdoc-automation
run: pnpm start
run: bun start
env:
INPUT_ROOT_DIRECTORY: ${{ inputs.root_directory }}
INPUT_PULL_NUMBER: ${{ inputs.pull_number }}
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/pnpm-lockfile-check.yml

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 22
node-version: "23"

- uses: pnpm/action-setup@v3
with:
version: 8
- uses: oven-sh/setup-bun@v2

- name: Configure Git
run: |
Expand All @@ -38,10 +36,10 @@ jobs:
run: sudo apt-get install -y protobuf-compiler

- name: Install dependencies
run: pnpm install
run: bun install

- name: Build packages
run: pnpm run build
run: bun run build

- name: Tag and Publish Packages
id: tag_publish
Expand All @@ -67,7 +65,7 @@ jobs:
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
PNPM_HOME: /home/runner/setup-bun/node_modules/.bin
with:
tag_name: ${{ steps.get_tag.outputs.TAG }}
release_name: Release
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 23.3.0
node-version: "23"

- uses: pnpm/action-setup@v3
with:
version: 9.15.0
- uses: oven-sh/setup-bun@v2

- name: Configure Git
run: |
Expand All @@ -35,10 +33,10 @@ jobs:
run: sudo apt-get install -y protobuf-compiler

- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile
run: bun install

- name: Build packages
run: pnpm run build
run: bun run build

- name: Publish Packages
id: publish
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
- uses: oven-sh/setup-bun@v2

- uses: actions/setup-node@v4
with:
node-version: "23.3"
cache: "pnpm"
node-version: "23"
cache: "bun"

- name: Run smoke tests
run: pnpm run smokeTests
run: bun run smokeTests
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ tsup.config.bundled_*.mjs

.turbo
.cursorrules
.pnpm-store
instructions.md
wallet_data.txt

Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ tasks:
nvm install v23.3.0
git fetch --tags
git checkout $(git describe --tags --abbrev=0)
command: pnpm install && pnpm run build
command: bun install && bun run build
Loading

0 comments on commit 6e9f246

Please sign in to comment.