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
2 changes: 1 addition & 1 deletion .github/.dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "yarn"
- package-ecosystem: "pnpm"
allow:
- dependency-type: "production"
commit-message:
Expand Down
27 changes: 17 additions & 10 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@ jobs:
node: [22]
steps:
- uses: actions/checkout@v2
- name: Install pnpm before setup node
shell: bash
run: npm install -g pnpm
- uses: actions/setup-node@v2-beta
with:
node-version: ${{matrix.node}}
- run: yarn install
- run: yarn build
- run: pnpm install
- run: pnpm build
- name: Lint
run: yarn lint
run: pnpm lint
- name: Check Types
run: yarn run check-types
run: pnpm run check-types
- name: Unit tests
run: yarn test:unit
run: pnpm test:unit
- name: E2e tests
run: yarn test:e2e
run: pnpm test:e2e

maybe-release:
name: release
Expand All @@ -49,20 +52,24 @@ jobs:

- uses: actions/checkout@v3
if: ${{ steps.release.outputs.releases_created }}


- name: Install pnpm before setup node
shell: bash
run: npm install -g pnpm

- uses: actions/setup-node@v3
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.releases_created }}

- run: yarn install
- run: pnpm install
if: ${{ steps.release.outputs.releases_created }}

- run: yarn build
- run: pnpm build
if: ${{ steps.release.outputs.releases_created }}

- run: yarn run publish
- run: pnpm run publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
if: ${{ steps.release.outputs.releases_created }}
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log

# Runtime data
pids
Expand Down Expand Up @@ -51,15 +50,12 @@ typings/
# Output of 'npm pack'
*.tgz

# Output of `yarn build`
# Output of `pnpm build`
lib

# IDEA folder
.idea

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

Expand Down
5 changes: 0 additions & 5 deletions lerna.json

This file was deleted.

19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"packages/*"
],
"scripts": {
"check-types": "lerna run check-types",
"build": "lerna run build",
"lint": "lerna run lint",
"prepublishOnly": "yarn build",
"publish": "lerna publish from-package --yes --no-verify-access",
"test": "lerna run test",
"test:unit": "lerna run test:unit",
"test:e2e": "lerna run test:e2e"
"check-types": "pnpm -r check-types",
"build": "pnpm -r build",
"lint": "pnpm -r lint",
"prepublishOnly": "pnpm build",
"publish": "pnpm publish -r --access public --no-git-check",
"test": "pnpm -r test",
"test:unit": "pnpm -r test:unit",
"test:e2e": "pnpm -r test:e2e"
},
"pre-push": [
"lint"
Expand All @@ -34,12 +34,11 @@
"eslint": "^8.17.0",
"eslint-plugin-prettier": "^4.0.0",
"karma": "^4.3.0",
"lerna": "^7.4.2",
"mocha": "^10.0.0",
"nyc": "^14.1.1",
"prettier": "^2.6.2",
"ts-node": "^10.8.1",
"typescript": "^4.7.3"
},
"packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
"packageManager": "pnpm@10.24.0"
}
8 changes: 5 additions & 3 deletions packages/discv5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"scripts": {
"check-types": "tsc --noEmit",
"build": "tsc -p tsconfig.build.json",
"prepublishOnly": "yarn build",
"prepublishOnly": "pnpm build",
"lint": "eslint --color --ext .ts src/ test/",
"test": "yarn test:unit && yarn test:e2e",
"test": "pnpm test:unit && pnpm test:e2e",
"test:unit": "mocha 'test/unit/**/*.test.ts'",
"test:e2e": "mocha 'test/e2e/**/*.test.ts'"
},
Expand All @@ -66,14 +66,16 @@
"homepage": "https://github.com/ChainSafe/discv5#readme",
"devDependencies": {},
"dependencies": {
"@chainsafe/enr": "^5.0.1",
"@chainsafe/enr": "workspace:^",
"@ethereumjs/rlp": "^5.0.2",
"@libp2p/crypto": "^5.0.1",
"@libp2p/interface": "^2.0.1",
"@libp2p/peer-id": "^5.0.1",
"@multiformats/multiaddr": "^12.1.10",
"@noble/hashes": "^1.7.0",
"@noble/secp256k1": "^2.2.2",
"debug": "^4.3.1",
"ethereum-cryptography": "^2.2.0",
"lru-cache": "^10.1.0",
"strict-event-emitter-types": "^2.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/enr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"scripts": {
"check-types": "tsc --noEmit",
"build": "tsc -p tsconfig.build.json",
"prepublishOnly": "yarn build",
"prepublishOnly": "pnpm build",
"lint": "eslint --color --ext .ts src/ test/",
"test": "yarn test:unit && yarn test:e2e",
"test": "pnpm test:unit && pnpm test:e2e",
"test:perf": "NODE_OPTIONS='--max-old-space-size=4096 --loader=ts-node/esm' benchmark 'bench/**/*.bench.ts' --config .bench.yaml",
"test:unit": "mocha 'test/unit/**/*.test.ts'"
},
Expand Down
Loading