Skip to content

Commit

Permalink
🦈 Use pnpm instead of yarn in all packages.json (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse committed Jul 21, 2023
1 parent 01ed172 commit c1a8d11
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 112 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI-gnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
run: |
set -e
pnpm run generate
yarn start &
pnpm start &
sleep 15
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:playwright -g "with Gnosis Safe"
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm test:playwright -g "with Gnosis Safe"
env:
MAINNET_URL: ${{ secrets.MAINNET_PROVIDER_URL }}
DOCS_GNOSIS_OWNER_FIRST: ${{ secrets.DOCS_GNOSIS_OWNER_FIRST }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ jobs:
run: |
set -e
pnpm run generate
yarn start &
pnpm start &
sleep 15
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:playwright
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm test:playwright
env:
MAINNET_URL: ${{ secrets.MAINNET_PROVIDER_URL }}
DEBUG: usedapp*
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"lint": "wsrun -c -s lint",
"lint:fix": "wsrun -c -s lint:fix",
"lint": "pnpm run -r lint",
"lint:fix": "pnpm run -r lint:fix",
"build": "pnpm run -r build",
"test": "wsrun -e -c -s --exclude-missing test",
"test": "pnpm run -r test",
"version": "pnpm changeset version && pnpm install",
"release": "pnpm build && pnpm changeset publish"
},
"dependencies": {
"@changesets/cli": "^2.14.1",
"ethers": "5.6.9",
"prettier": "2.1.2",
"wsrun": "^5.2.1"
"prettier": "2.1.2"
},
"resolutions": {
"ethers": "5.6.9"
Expand Down
8 changes: 4 additions & 4 deletions packages/coingecko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"ethers": "*"
},
"scripts": {
"build": "yarn run build:esm && yarn run build:cjs",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc --module es2020 --target es2017 --outDir dist/esm",
"build:cjs": "tsc --outDir dist/cjs",
"test": "mocha",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "yarn lint:prettier --write && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "pnpm lint:prettier --write && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test}/**/*.{ts,tsx}'",
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'"
"lint:prettier": "pnpm prettier './{src,test}/**/*.{ts,tsx}'"
}
}
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
"wait-for-expect": "^3.0.2"
},
"scripts": {
"build": "yarn run build:esm && yarn run build:cjs && yarn build:cli",
"build": "pnpm run build:esm && pnpm run build:cjs && pnpm build:cli",
"build:esm": "tsc --module es2020 --target es2017 --outDir dist/esm",
"build:cjs": "tsc --outDir dist/cjs",
"build:cli": "tsc ./generate-hooks/generate-hooks.ts --outDir bin && chmod +x bin/*",
"test": "TS_NODE_PROJECT=./tsconfig.test.json mocha",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "yarn lint:prettier --write && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "pnpm lint:prettier --write && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test}/**/*.{ts,tsx}'",
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'"
"lint:prettier": "pnpm prettier './{src,test}/**/*.{ts,tsx}'"
},
"publishConfig": {
"access": "public"
Expand Down
16 changes: 8 additions & 8 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"module": "dist/esm/src/index.js",
"types": "dist/esm/src/index.d.ts",
"scripts": {
"typechain:generate": "yarn typechain --target=ethers-v5 ./src/abi/**/*.json --out-dir=./gen/types",
"typechain:generate": "pnpm typechain --target=ethers-v5 ./src/abi/**/*.json --out-dir=./gen/types",
"usedapp:generate": "USEDAPP_OUT_DIR=./gen/hooks USEDAPP_TYPES_DIR=./gen/types pnpm usedapp-generate-hooks",
"start": "webpack serve --mode development",
"build": "yarn build:app && yarn build:package",
"build:app": "yarn generate && tsc --noEmit && rimraf build && webpack --mode production --progress",
"generate": "yarn typechain:generate && yarn usedapp:generate",
"build:package": "yarn build:esm && yarn build:cjs && yarn copy-files",
"build": "pnpm build:app && pnpm build:package",
"build:app": "pnpm generate && tsc --noEmit && rimraf build && webpack --mode production --progress",
"generate": "pnpm typechain:generate && pnpm usedapp:generate",
"build:package": "pnpm build:esm && pnpm build:cjs && pnpm copy-files",
"build:esm": "tsc --module es2020 --target es2017 --outDir dist/esm",
"build:cjs": "tsc --outDir dist/cjs",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "yarn lint:prettier --write && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "pnpm lint:prettier --write && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test,playwright}/**/*.{ts,tsx}'",
"lint:prettier": "yarn prettier './{src,test,playwright}/**/*.{ts,tsx}'",
"lint:prettier": "pnpm prettier './{src,test,playwright}/**/*.{ts,tsx}'",
"test": "mocha -r ts-node/register/transpile-only './test/**/*.test.{ts,tsx}'",
"test:playwright": "mocha -r ts-node/register/transpile-only './playwright/**/*.test.ts' --bail",
"copy-files": "cp -r ./src/assets ./dist/cjs/src/assets && cp -r ./src/assets ./dist/esm/src/assets"
Expand Down
4 changes: 2 additions & 2 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"start": "webpack serve --mode development",
"build:dev": "webpack --mode development",
"build": "tsc --noEmit && rimraf build && webpack --mode production --progress",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "prettier --write . && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "prettier --write . && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test}/**/*.{ts,tsx}'",
"lint:prettier": "prettier --check .",
"test": "mocha",
Expand Down
4 changes: 2 additions & 2 deletions packages/playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"types": "dist/src/index.d.ts",
"scripts": {
"build": "rimraf dist && tsc",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "prettier --write ./src && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "prettier --write ./src && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test}/**/*.{ts,tsx}'",
"lint:prettier": "prettier --check ./src",
"postinstall": "unzip -n metamask-chrome-10.12.4.zip -d ./metamask-chrome-10.12.4"
Expand Down
6 changes: 3 additions & 3 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"scripts": {
"build": "tsc",
"test": "true",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "yarn lint:prettier --write && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "pnpm lint:prettier --write && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test,examples}/**/*.{ts,tsx}'",
"lint:prettier": "yarn prettier './{src,test,examples}/**/*.{ts,tsx}'"
"lint:prettier": "pnpm prettier './{src,test,examples}/**/*.{ts,tsx}'"
}
}
8 changes: 4 additions & 4 deletions packages/uniswap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"access": "public"
},
"scripts": {
"build": "yarn run build:esm && yarn run build:cjs",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc --module es2020 --target es2017 --outDir dist/esm",
"build:cjs": "tsc --outDir dist/cjs",
"lint": "yarn lint:prettier --check && yarn lint:eslint",
"lint:fix": "yarn lint:prettier --write && yarn lint:eslint --fix",
"lint": "pnpm lint:prettier --check && pnpm lint:eslint",
"lint:fix": "pnpm lint:prettier --write && pnpm lint:eslint --fix",
"lint:eslint": "eslint './{src,test}/**/*.{ts,tsx}'",
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'",
"lint:prettier": "pnpm prettier './{src,test}/**/*.{ts,tsx}'",
"test": "mocha"
},
"dependencies": {},
Expand Down
82 changes: 6 additions & 76 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 comments on commit c1a8d11

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.