Skip to content

Commit 898c84a

Browse files
authored
Preparing packages for pnpm upgrade by adding missing deps and re-naming scripts to use clean names rather than overloaded binary names (ourzora#515)
* Preparing packages for pnpm upgrade by adding missing deps and re-naming scripts to use clean names rather than overloaded binary names * binary name update
1 parent 2677c89 commit 898c84a

File tree

18 files changed

+353
-153
lines changed

18 files changed

+353
-153
lines changed

.changeset/clever-peas-sip.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"@zoralabs/protocol-deployments-gen": patch
3+
"@zoralabs/protocol-deployments": patch
4+
"@zoralabs/mints-deployments": patch
5+
"@zoralabs/1155-deployments": patch
6+
"@zoralabs/protocol-rewards": patch
7+
"@zoralabs/shared-contracts": patch
8+
"@zoralabs/zora-1155-contracts": patch
9+
"@zoralabs/protocol-sdk": patch
10+
"smart-wallet": patch
11+
"@zoralabs/mints-contracts": patch
12+
"docs": patch
13+
---
14+
15+
[chore] Update dependencies and runtime scripts
16+
17+
This ensures jobs do not match binary names to make runs less ambigious and also that all deps are accounted for.

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
yarn run-lint-staged

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
auto-install-peers = true
2+
ignore-scripts = true

docs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
"yaml": "2.3.4"
2424
},
2525
"devDependencies": {
26+
"@types/node": "^20.13.0",
2627
"@0xsplits/splits-sdk": "^4.0.2",
2728
"@zoralabs/protocol-sdk": "*",
29+
"@zoralabs/protocol-deployments": "*",
2830
"zoralabs-tsconfig": "*"
2931
}
3032
}

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint": "turbo run lint",
1212
"format": "turbo run format",
1313
"release": "turbo run build && changeset publish",
14-
"prepare": "husky install"
14+
"prepare": "husky install",
15+
"run-lint-staged": "lint-staged"
1516
},
1617
"devDependencies": {
1718
"@changesets/cli": "2.26.2",
@@ -48,5 +49,11 @@
4849
"*.js": "prettier --write",
4950
"*.mjs": "prettier --write",
5051
"*.json": "prettier --write"
52+
},
53+
"ignore": [
54+
"*.template.sol"
55+
],
56+
"engines": {
57+
"node": ">=16"
5158
}
5259
}

packages/1155-contracts/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"test": "forge test -vv",
2222
"test-gas": "forge test --gas-report",
2323
"prettier:check": "prettier --check 'src/**/*.sol' 'test/**/*.sol' 'package/**/*.ts' 'wagmi.config.ts'",
24-
"prettier": "prettier --write 'src/**/*.sol' 'test/**/*.sol' 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'",
24+
"prettier:write": "prettier --write 'src/**/*.sol' 'test/**/*.sol' 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'",
2525
"copy-abis": "yarn tsx script/bundle-abis.ts",
2626
"lint": "yarn run prettier:check",
2727
"coverage": "forge coverage --report lcov",
2828
"write-gas-report": "forge test --gas-report > gasreport.ansi",
2929
"build:contracts": "forge build",
30-
"build": "yarn wagmi && yarn copy-abis && yarn prettier && tsup",
30+
"build": "yarn wagmi && yarn copy-abis && yarn prettier:write && tsup",
3131
"wagmi": "FOUNDRY_PROFILE=dev forge build && wagmi generate",
3232
"build:sizes": "forge build --sizes",
3333
"storage-inspect:check": "./script/storage-check.sh check ZoraCreator1155Impl ZoraCreator1155FactoryImpl",
@@ -48,11 +48,13 @@
4848
"es-main": "^1.2.0",
4949
"forge-std": "https://github.com/foundry-rs/forge-std#705263c95892a906d7af65f0f73ce8a4a0c80b80",
5050
"glob": "^10.2.2",
51-
"prettier-plugin-solidity": "^1.3.1",
5251
"solmate": "6.1.0",
5352
"tsup": "^7.2.0",
5453
"tsx": "^3.13.0",
5554
"typescript": "^5.2.2",
56-
"zoralabs-tsconfig": "*"
55+
"zoralabs-tsconfig": "*",
56+
"pathe": "^1.1.2",
57+
"prettier": "^3.0.3",
58+
"prettier-plugin-solidity": "^1.3.1"
5759
}
5860
}

packages/1155-deployments/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,23 @@
1818
},
1919
"dependencies": {},
2020
"devDependencies": {
21+
"@openzeppelin/contracts": "4.9.2",
22+
"@zoralabs/openzeppelin-contracts-upgradeable": "4.8.4",
2123
"@lavamoat/preinstall-always-fail": "2.0.0",
2224
"@turnkey/api-key-stamper": "^0.3.1",
2325
"@turnkey/http": "^2.5.1",
2426
"@turnkey/viem": "^0.4.4",
2527
"@types/node": "^20.1.2",
2628
"@zoralabs/chains": "^1.3.1",
2729
"@zoralabs/mints-contracts": "*",
30+
"@zoralabs/protocol-rewards": "*",
2831
"@zoralabs/shared-contracts": "*",
2932
"@zoralabs/zora-1155-contracts": "*",
3033
"ds-test": "https://github.com/dapphub/ds-test#cd98eff28324bfac652e63a239a60632a761790b",
3134
"es-main": "^1.2.0",
3235
"forge-std": "https://github.com/foundry-rs/forge-std#705263c95892a906d7af65f0f73ce8a4a0c80b80",
3336
"glob": "^10.2.2",
3437
"handlebars": "^4.7.8",
35-
"prettier-plugin-solidity": "^1.3.1",
3638
"solady": "0.0.132",
3739
"solmate": "6.1.0",
3840
"toml": "^3.0.0",

packages/mints-deployments/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"dev": "FOUNDRY_PROFILE=dev forge test --watch -vvv",
1313
"test": "FORK_TEST_CHAINS=mainnet,goerli,optimism,optimism_goerli,zora,zora_goerli,sepolia,base_goerli,base,zora_sepolia forge test -vvv",
14-
"prettier": "prettier --write 'src/**/*.sol' 'scripts/**/*.ts'",
14+
"prettier:write": "prettier --write 'src/**/*.sol' 'scripts/**/*.ts'",
1515
"lint": "prettier --check 'src/**/*.sol' 'scripts/**/*.ts'",
1616
"copy-deployed-contracts": "yarn tsx script/copy-deployed-contracts.ts",
1717
"unlink-common": "rm -rf ./node_modules/@zoralabs/shared-contracts && cp -r ../shared-contracts ./node_modules/@zoralabs/shared-contracts",
@@ -24,6 +24,9 @@
2424
"@zoralabs/shared-contracts": "*"
2525
},
2626
"devDependencies": {
27+
"@openzeppelin/contracts": "5.0.2",
28+
"@openzeppelin/contracts-upgradeable": "5.0.2",
29+
"prettier": "^3.0.3",
2730
"@inquirer/prompts": "^3.3.0",
2831
"viem": "^2.9.19",
2932
"@lavamoat/preinstall-always-fail": "2.0.0",

packages/mints/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"test": "forge test",
1717
"build:contracts": "forge build",
1818
"prettier:check": "prettier --check 'src/**/*.sol' 'test/**/*.sol'",
19-
"prettier": "prettier --write 'src/**/*.sol' 'test/**/*.sol' ",
19+
"prettier:write": "prettier --write 'src/**/*.sol' 'test/**/*.sol'",
2020
"lint": "prettier --check 'src/**/*.sol' 'test/**/*.sol' ",
2121
"copy-abis": "yarn tsx script/bundle-abis.ts",
22-
"build": "yarn wagmi && yarn copy-abis && yarn prettier && tsup",
23-
"wagmi": "FOUNDRY_PROFILE=dev forge build && wagmi generate",
22+
"build": "yarn wagmi:generate && yarn copy-abis && yarn prettier:write && tsup",
23+
"wagmi:generate": "FOUNDRY_PROFILE=dev forge build && wagmi generate",
2424
"update-contract-version": "node script/update-contract-version.mjs"
2525
},
2626
"dependencies": {
@@ -33,8 +33,13 @@
3333
},
3434
"devDependencies": {
3535
"@lavamoat/preinstall-always-fail": "2.0.0",
36+
"@wagmi/cli": "^1.0.1",
3637
"@types/node": "20.3.2",
38+
"pathe": "^1.1.2",
39+
"prettier": "^3.0.3",
40+
"tsx": "^4.11.0",
3741
"typescript": "^5.2.2",
42+
"zoralabs-tsconfig": "*",
3843
"glob": "^10.2.2",
3944
"tsup": "^7.2.0",
4045
"prettier-plugin-solidity": "^1.3.1"

packages/protocol-deployments-gen/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"type": "module",
77
"private": true,
88
"scripts": {
9-
"build": "yarn wagmi",
10-
"wagmi": "wagmi generate"
9+
"build": "yarn wagmi:generate",
10+
"wagmi:generate": "wagmi generate"
1111
},
1212
"dependencies": {},
1313
"devDependencies": {
@@ -18,6 +18,7 @@
1818
"es-main": "^1.2.0",
1919
"@wagmi/cli": "^1.0.1",
2020
"@types/node": "^20.1.2",
21+
"viem": "^2.13.2",
2122
"@lavamoat/preinstall-always-fail": "2.0.0",
2223
"@zoralabs/1155-deployments": "*",
2324
"@zoralabs/zora-1155-contracts": "*",

0 commit comments

Comments
 (0)