From e102c566717a207bea425e1b45c1b391cacf4270 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Fri, 19 Jul 2024 13:26:53 +0300 Subject: [PATCH] remove yarn usage --- .husky/pre-commit | 2 +- README.md | 6 +++--- contracts/wrapper/README.md | 10 ++++------ package.json | 4 ++-- test/ethregistrar/exponentialPremiumScript.sh | 2 +- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c5099133..25ba5e3b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn format && git add . +bun run format && git add . diff --git a/README.md b/README.md index 953b8f0c..a064e9ad 100644 --- a/README.md +++ b/README.md @@ -152,19 +152,19 @@ This repo runs a husky precommit to prettify all contract files to keep them con ``` git clone https://github.com/ensdomains/ens-contracts cd ens-contracts -yarn +bun i ``` ### How to run tests ``` -yarn test +bun run test ``` ### How to publish ``` -yarn pub +bun run pub ``` ### Release flow diff --git a/contracts/wrapper/README.md b/contracts/wrapper/README.md index 418f571c..d1890875 100644 --- a/contracts/wrapper/README.md +++ b/contracts/wrapper/README.md @@ -442,13 +442,12 @@ RESOLVER_ADDRESS= ### Run deploy script -`yarn deploy:rinkeby` will deploy to rinkeby and verify its source code +`bun run deploy:rinkeby` will deploy to rinkeby and verify its source code NOTE: If you want to override the default metadata url, set `METADATA_HOST=` to `.env` ``` -$yarn deploy:rinkeby -yarn run v1.22.10 +$ bun run deploy:rinkeby $ npx hardhat run --network rinkeby scripts/deploy.js Deploying contracts to rinkeby with the account:0x97bA55F61345665cF08c4233b9D6E61051A43B18 Account balance: 1934772596667918724 true @@ -472,11 +471,10 @@ After running the script it sets addresses to `.env`. If you want to redeploy so 1. Register a name using the account you used to deploy the contract 2. Set the label (`matoken` for `matoken.eth`) to `SEED_NAME=` on `.env` -3. Run `yarn seed:rinkeby` +3. Run `bun run seed:rinkeby` ``` -~/.../ens/name-wrapper (seed)$yarn seed:rinkeby -yarn run v1.22.10 +~/.../ens/name-wrapper (seed)$ bun run seed:rinkeby $ npx hardhat run --network rinkeby scripts/seed.js Account balance: 1925134991223891632 { diff --git a/package.json b/package.json index cb2742cb..33c9bebc 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "lint": "hardhat check", "build": "rm -rf ./build/deploy ./build/hardhat.config.js && hardhat compile && tsc", "format": "prettier --write .", - "prepublishOnly": "yarn build", - "pub": "yarn publish --access public", + "prepublishOnly": "bun run build", + "pub": "npm publish --access public", "prepare": "husky install", "wikiCheck": "bun ./scripts/wikiCheck.ts", "postinstall": "bunx patch-package" diff --git a/test/ethregistrar/exponentialPremiumScript.sh b/test/ethregistrar/exponentialPremiumScript.sh index a74c6cfa..53675173 100644 --- a/test/ethregistrar/exponentialPremiumScript.sh +++ b/test/ethregistrar/exponentialPremiumScript.sh @@ -1,2 +1,2 @@ # rerun if logic changes significantly for the ExponentialPremiumPriceOracle -for i in $(seq 0 11); do for j in $(seq 0 4); do OFFSET=$((i+j*12)) yarn test test/ethregistrar/TestExponentialPremiumPriceOracle.js; done & done \ No newline at end of file +for i in $(seq 0 11); do for j in $(seq 0 4); do OFFSET=$((i+j*12)) bun run test test/ethregistrar/TestExponentialPremiumPriceOracle.js; done & done \ No newline at end of file