Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
- name: Install worker-build
run: cargo install --locked worker-build

- run: corepack enable
- run: corepack enable pnpm

- run: yarn --immutable
- run: pnpm i --frozen-lockfile

- name: Dry Run
if: github.ref != 'refs/heads/main'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
~/.cargo/git/db/
target/
~/.npm
key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock', '**/Cargo.lock') }}
key: ${{ runner.os }}-deps-${{ hashFiles('**/pnpm-lock.yaml', '**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-deps-

Expand Down Expand Up @@ -104,11 +104,11 @@ jobs:
# Set to ~0.000000001 tFIL for e2e tests
export CALIBNET_DRIP_AMOUNT=1

corepack enable
yarn --immutable
yarn build
corepack enable pnpm
pnpm i --frozen-lockfile
pnpm build
# Use separate state directories to isolate Durable Object storage between parallel runs
yarn wrangler dev --port ${{ matrix.port }} --persist-to .wrangler-state-${{ matrix.state_dir }}-${{ github.run_id }} &
pnpm wrangler dev --port ${{ matrix.port }} --persist-to .wrangler-state-${{ matrix.state_dir }}-${{ github.run_id }} &
echo "waiting for server on port ${{ matrix.port }}"
timeout 120 sh -c 'until nc -z $0 $1; do sleep 1; done' 127.0.0.1 ${{ matrix.port }}
echo "TCP port check passed, now waiting for HTTP server to be ready..."
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target
pnpm-lock.yaml
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ fmt:
cargo fmt --all
taplo fmt
leptosfmt .
corepack enable && yarn && yarn md-fmt
corepack enable pnpm && pnpm i && pnpm md-fmt

fmt-lints: cargo-fmt taplo md-lint leptos-fmt

md-lint:
corepack enable && yarn && yarn md-check
corepack enable pnpm && pnpm i && pnpm md-check

cargo-fmt:
cargo fmt --all --check
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Anything pushed to `main` will automatically be deployed at

Installing node(LTS versions recommended).

Running `corepack enable` to opt-in corepack, see
[docs](https://yarnpkg.com/corepack#installation) for details.
Running `corepack enable pnpm` to opt-in corepack, see
[docs](https://pnpm.io/installation#using-corepack) for details.

Running `yarn` or `yarn --immutable` once to install all required npm
Running `pnpm i` or `pnpm i --frozen-lockfile` once to install all required npm
dependencies.

Running `yarn start` will spawn a local copy of the explorer.
Running `pnpm start` will spawn a local copy of the explorer.

To speed up the build during development, you can run `yarn dev` which will skip
To speed up the build during development, you can run `pnpm dev` which will skip
the optimization step.

You can define secrets for your local faucet in the `.dev.vars` file. This file
Expand Down
4 changes: 2 additions & 2 deletions docs/cors_testing_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ permission.
Each test suite runs independently:

```bash
yarn wrangler dev --port 8788 --persist-to .wrangler-state-cors-${github.run_id}
pnpm wrangler dev --port 8788 --persist-to .wrangler-state-cors-${github.run_id}
```

This prevents CORS test state from interfering with Browser or API tests.
Expand Down Expand Up @@ -153,7 +153,7 @@ Validates security headers and error handling:

```bash
# Start server
yarn wrangler dev --port 8787
pnpm wrangler dev --port 8787

# Run CORS tests
API_URL="http://127.0.0.1:8787" k6 run e2e/test_cors.js
Expand Down
2 changes: 1 addition & 1 deletion docs/e2e_api_testing_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ strategy:
Each test suite runs with isolated Durable Object storage:

```bash
yarn wrangler dev --port ${matrix.port} --persist-to .wrangler-state-${state_dir}-${github.run_id}
pnpm wrangler dev --port ${matrix.port} --persist-to .wrangler-state-${state_dir}-${github.run_id}
```

This prevents the rate-limiting state from one test from affecting the other.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "root",
"private": true,
"engines": {
"node": ">=18.0.0"
"node": ">=20",
"pnpm": ">=10"
},
"devDependencies": {
"prettier": "^3.8.1",
"tailwindcss": "^3.4.17",
"wrangler": "^4.67.0"
"wrangler": "^4.69.0"
},
"scripts": {
"prettier-version": "prettier --version",
Expand All @@ -20,6 +21,5 @@
"build": "wrangler build",
"dev": "wrangler dev --env quick",
"start": "wrangler dev"
},
"packageManager": "yarn@4.12.0"
}
}
Loading
Loading