Skip to content

Commit

Permalink
🧱 package: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Sep 25, 2024
1 parent 96faa44 commit 6459fff
Show file tree
Hide file tree
Showing 7 changed files with 8,255 additions and 80 deletions.
128 changes: 64 additions & 64 deletions .gas-snapshot

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
cache: pnpm
- uses: foundry-rs/foundry-toolchain@v1
- run: bun install
- run: pnpm install --frozen-lockfile
- uses: changesets/action@v1
with:
title: 🔖 new release
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
cache: pnpm
- uses: foundry-rs/foundry-toolchain@v1
- run: bun install
- run: bun run lint
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: rm -rf cache/fuzz cache/invariant
- run: forge build
- run: bun run coverage
- run: pnpm run coverage
- uses: codecov/codecov-action@v4
if: always()
with:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,29 @@ git clone git@github.com:exactly/protocol.git
### Install Locally

```bash
bun install
pnpm install
```

### Run Tests

```bash
bun run test
pnpm test
```

### Run Coverage

```bash
bun run coverage
pnpm run coverage
```

### Gas Reports

```bash
REPORT_GAS=1 bun run test
REPORT_GAS=1 pnpm test
```

### Deploy

```bash
bun run deploy:op-sepolia
pnpm run deploy:op-sepolia
```
Binary file removed bun.lockb
Binary file not shown.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
"homepage": "https://exact.ly",
"repository": "github:exactly/protocol",
"scripts": {
"lint": "concurrently 'npm:lint:*' --group -c auto",
"lint": "pnpm run --aggregate-output --no-bail /lint:/",
"lint:sol": "solhint '{contracts,scripts,test}/**/*.sol'",
"lint:ts": "tsc",
"lint:es": "eslint --ext .ts,.js,.cjs,.mjs .",
"fix:sol": "prettier -w '{contracts,scripts,test}/**/*.sol'",
"compile": "hardhat compile",
"snapshot": "FOUNDRY_PROFILE=snapshot forge snapshot --no-match-contract Protocol",
"test": "concurrently 'npm:test:*' --kill-others-on-fail --group -c auto",
"test": "pnpm run --aggregate-output /test:/",
"test:foundry": "forge test",
"test:hardhat": "hardhat test --deploy-fixture",
"coverage": "bun coverage:snapshot && bun coverage:foundry && bun coverage:hardhat && bun coverage:fuzzer",
"coverage": "pnpm coverage:snapshot && pnpm coverage:foundry && pnpm coverage:hardhat && pnpm coverage:fuzzer",
"coverage:foundry": "forge coverage --report lcov --no-match-contract Protocol",
"coverage:hardhat": "hardhat coverage",
"coverage:snapshot": "FOUNDRY_PROFILE=snapshot forge snapshot --check --no-match-contract Protocol",
"coverage:fuzzer": "FOUNDRY_PROFILE=production forge test --no-match-contract Protocol",
"deploy:ethereum": "hardhat --network ethereum deploy",
"deploy:op-sepolia": "hardhat --network op-sepolia deploy",
"prepare": "concurrently 'npm:prepare:*' --group -c auto || true",
"prepare": "pnpm run --aggregate-output --no-bail /prepare:/ || true",
"prepare:foundry": "forge install",
"prepare:hardhat": "hardhat compile --force"
},
Expand Down Expand Up @@ -62,7 +62,6 @@
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"chai": "^4.4.1",
"concurrently": "^8.2.2",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
Loading

0 comments on commit 6459fff

Please sign in to comment.