Skip to content

Commit

Permalink
🧹 Lock versions of ethers & @openzeppelin/contracts in examples (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Feb 14, 2024
1 parent e0f41b5 commit c6e3b45
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .changeset/polite-jeans-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"create-lz-oapp": patch
"@layerzerolabs/oapp-example": patch
"@layerzerolabs/oft-example": patch
---

Lock versions of ethers & @openzeppelin/contracts in packages; Put pnpm first in create-lz-oapp
14 changes: 14 additions & 0 deletions examples/oapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"test:forge": "forge test",
"test:hardhat": "hardhat test"
},
"resolutions": {
"@openzeppelin/contracts": "^5.0.1",
"ethers": "^5.7.2"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@layerzerolabs/eslint-config-next": "^2.1.7",
Expand Down Expand Up @@ -51,5 +55,15 @@
},
"engines": {
"node": ">=18.16.0"
},
"overrides": {
"@openzeppelin/contracts": "^5.0.1",
"ethers": "^5.7.2"
},
"pnpm": {
"overrides": {
"@openzeppelin/contracts": "^5.0.1",
"ethers": "^5.7.2"
}
}
}
14 changes: 14 additions & 0 deletions examples/oft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"test:forge": "forge test",
"test:hardhat": "hardhat test"
},
"resolutions": {
"@openzeppelin/contracts": "^5.0.1",
"ethers": "^5.7.2"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@layerzerolabs/eslint-config-next": "^2.1.7",
Expand Down Expand Up @@ -51,5 +55,15 @@
},
"engines": {
"node": ">=18.16.0"
},
"overrides": {
"@openzeppelin/contracts": "^5.0.1",
"ethers": "^5.7.2"
},
"pnpm": {
"overrides": {
"@openzeppelin/contracts": "^5.0.1",
"ethers": "^5.7.2"
}
}
}
14 changes: 7 additions & 7 deletions packages/create-lz-oapp/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ export const EXAMPLES: Example[] = [
]

export const PACKAGE_MANAGERS: PackageManager[] = [
{
id: 'pnpm',
executable: 'pnpm',
args: ['install'],
label: 'pnpm (recommended)',
},
{
id: 'npm',
executable: 'npm',
args: ['install', '--legacy-peer-deps'],
args: ['install'],
label: 'npm',
},
{
Expand All @@ -46,12 +52,6 @@ export const PACKAGE_MANAGERS: PackageManager[] = [
args: ['install'],
label: 'yarn',
},
{
id: 'pnpm',
executable: 'pnpm',
args: ['install'],
label: 'pnpm (recommended)',
},
{
id: 'bun',
executable: 'bun',
Expand Down

0 comments on commit c6e3b45

Please sign in to comment.