Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 8a1e540

Browse files
Next (#125)
* #93 update packages (#123) * updated packages
1 parent 7cb9a03 commit 8a1e540

File tree

11 files changed

+605
-479
lines changed

11 files changed

+605
-479
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"chalk": "^4.1.2",
7474
"commander": "^9.4.0",
7575
"cross-env": "^7.0.3",
76-
"eslint": "^8.22.0",
76+
"eslint": "^8.23.1",
7777
"husky": "^8.0.1",
7878
"lint-staged": "^13.0.3",
7979
"prettier": "^2.7.1",

packages/commands/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
},
1212
"devDependencies": {
1313
"@scaffold-eth/common": "0.0.0",
14-
"@swc/core": "^1.2.239",
15-
"@swc/helpers": "^0.4.7",
16-
"@types/debounce": "^1",
14+
"@swc/core": "^1.3.1",
15+
"@swc/helpers": "^0.4.11",
16+
"@types/debounce": "^1.2.1",
1717
"@types/edit-json-file": "^1.7.0",
1818
"@types/shelljs": "^0.8.11",
19-
"@types/throttle-debounce": "^5",
20-
"@typescript-eslint/eslint-plugin": "^5.36.2",
21-
"@typescript-eslint/parser": "^5.36.2",
19+
"@types/throttle-debounce": "^5.0.0",
20+
"@typescript-eslint/eslint-plugin": "^5.37.0",
21+
"@typescript-eslint/parser": "^5.37.0",
2222
"chalk": "^4.1.2",
2323
"cross-env": "^7.0.3",
2424
"edit-json-file": "^1.7.0",
25-
"eslint": "^8.22.0",
25+
"eslint": "^8.23.1",
2626
"eslint-config-airbnb": "^19.0.4",
2727
"eslint-config-airbnb-typescript": "^17.0.0",
2828
"eslint-config-prettier": "^8.5.0",
@@ -32,7 +32,7 @@
3232
"eslint-plugin-mocha": "^10.1.0",
3333
"eslint-plugin-node": "^11.1.0",
3434
"eslint-plugin-prettier": "^4.2.1",
35-
"eslint-plugin-react": "^7.30.1",
35+
"eslint-plugin-react": "^7.31.8",
3636
"eslint-plugin-react-hooks": "^4.6.0",
3737
"eslint-plugin-unused-imports": "^2.0.0",
3838
"husky": "^8.0.1",
@@ -44,13 +44,13 @@
4444
"ts-node": "^10.9.1",
4545
"ts-toolbelt": "^9.6.0",
4646
"tsconfig-paths": "^4.1.0",
47-
"typescript": "^4.7.4"
47+
"typescript": "^4.8.3"
4848
},
4949
"dependencies": {
5050
"commander": "^9.4.0",
5151
"shelljs": "^0.8.5",
5252
"shx": "^0.3.4",
5353
"throttle-debounce": "^5.0.0",
54-
"zod": "^3.18.0"
54+
"zod": "^3.19.1"
5555
}
5656
}

packages/commands/src/commands/functions/launchReact.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const startReact = (args: string[]): void => {
1111
const passthroughArgs = processUnknownArgs(args);
1212

1313
if (config.build.reactBuild === 'vite') {
14-
shell.exec('yarn workspace @scaffold-eth/vite-app start' + passthroughArgs);
14+
shell.exec('yarn workspace @scaffold-eth/vite-app start' + passthroughArgs, {});
1515
} else if (config.build.reactBuild === 'nextjs') {
1616
shell.exec('yarn workspace @scaffold-eth/nextjs-app dev' + passthroughArgs);
1717
} else {

packages/commands/src/commands/functions/launchSolidity.ts

+11-5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import shell from 'shelljs';
55

66
import { processUnknownArgs } from './processUnknownArgs';
77

8+
import { printError } from '~~/commands/functions/printError';
89
import { load, printConfig } from '~~/helpers/configManager';
910

1011
const createCommonGeneratedFolder = (): void => {
@@ -25,15 +26,18 @@ export const compileSolidity = (args: string[]): void => {
2526
createCommonGeneratedFolder();
2627

2728
if (config.build.solidityToolkit === 'hardhat') {
28-
shell.exec('yarn workspace @scaffold-eth/solidity compile:hardhat' + passthroughArgs);
29+
const output = shell.exec('yarn workspace @scaffold-eth/solidity compile:hardhat' + passthroughArgs);
30+
printError(output, 'Could not compile');
2931
} else if (config.build.solidityToolkit === 'foundry') {
30-
shell.exec('yarn workspace @scaffold-eth/solidity compile:foundry' + passthroughArgs);
32+
const output = shell.exec('yarn workspace @scaffold-eth/solidity compile:foundry' + passthroughArgs);
33+
printError(output, 'Could not compile');
3134
shell.exec('yarn workspace @scaffold-eth/solidity compile:foundry:post ');
3235
} else {
3336
console.log(chalk.red('❌ Error! Invalid solidity toolkit in config!'));
3437
}
3538

36-
shell.exec('yarn workspace @scaffold-eth/common contracts:build');
39+
const output = shell.exec('yarn workspace @scaffold-eth/common contracts:build');
40+
printError(output);
3741
};
3842

3943
export const deploySolidity = (args: string[]): void => {
@@ -44,10 +48,12 @@ export const deploySolidity = (args: string[]): void => {
4448
createCommonGeneratedFolder();
4549

4650
if (config.build.solidityToolkit === 'hardhat') {
47-
shell.exec('yarn workspace @scaffold-eth/solidity deploy:hardhat' + passthroughArgs);
51+
const output = shell.exec('yarn workspace @scaffold-eth/solidity deploy:hardhat' + passthroughArgs);
52+
printError(output, 'Could not deploy');
4853
shell.exec('yarn workspace @scaffold-eth/solidity deploy:hardhat:post');
4954
} else if (config.build.solidityToolkit === 'foundry') {
50-
shell.exec('yarn workspace @scaffold-eth/solidity deploy:foundry' + passthroughArgs);
55+
const output = shell.exec('yarn workspace @scaffold-eth/solidity deploy:foundry' + passthroughArgs);
56+
printError(output, 'Could not deploy');
5157
shell.exec('yarn workspace @scaffold-eth/solidity deploy:foundry:post');
5258
} else {
5359
console.log(chalk.red('❌ Error! Invalid react build tool in config!'));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import chalk from 'chalk';
2+
import shell from 'shelljs';
3+
4+
export const printError = (output: shell.ShellString, additionalMsg: string = ''): void => {
5+
if (output.stderr.includes('Error HH')) {
6+
console.log(chalk.red('Error running commmand! ' + additionalMsg));
7+
console.log();
8+
}
9+
};

packages/common/package.json

+28-28
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@
2626
},
2727
"dependencies": {
2828
"@ant-design/icons": "^4.7.0",
29-
"@coinbase/wallet-sdk": "^3.5.0",
30-
"@emotion/react": "^11.10.0",
31-
"@ethersproject/abi": "^5.6.4",
32-
"@ethersproject/abstract-provider": "^5.6.1",
33-
"@ethersproject/address": "^5.6.1",
34-
"@ethersproject/bignumber": "^5.6.2",
35-
"@ethersproject/bytes": "^5.6.1",
36-
"@ethersproject/contracts": "^5.6.2",
37-
"@ethersproject/networks": "^5.6.4",
38-
"@ethersproject/providers": "^5.6.8",
39-
"@ethersproject/signing-key": "^5.6.2",
40-
"@ethersproject/solidity": "^5.6.1",
41-
"@ethersproject/units": "^5.6.1",
42-
"@portis/web3": "^4.0.7",
29+
"@coinbase/wallet-sdk": "^3.5.2",
30+
"@emotion/react": "^11.10.4",
31+
"@ethersproject/abi": "^5.7.0",
32+
"@ethersproject/abstract-provider": "^5.7.0",
33+
"@ethersproject/address": "^5.7.0",
34+
"@ethersproject/bignumber": "^5.7.0",
35+
"@ethersproject/bytes": "^5.7.0",
36+
"@ethersproject/contracts": "^5.7.0",
37+
"@ethersproject/networks": "^5.7.1",
38+
"@ethersproject/providers": "^5.7.1",
39+
"@ethersproject/signing-key": "^5.7.0",
40+
"@ethersproject/solidity": "^5.7.0",
41+
"@ethersproject/units": "^5.7.0",
42+
"@portis/web3": "^4.1.0",
4343
"@ramp-network/ramp-instant-sdk": "^3.2.0",
4444
"@uniswap/sdk": "^3.0.3",
4545
"@uniswap/token-lists": "^1.0.0-beta.30",
4646
"@walletconnect/ethereum-provider": "^1.8.0",
4747
"@walletconnect/web3-provider": "^1.8.0",
48-
"antd": "^4.22.6",
48+
"antd": "^4.23.1",
4949
"authereum": "^0.1.14",
5050
"buffer": "^6.0.3",
51-
"eth-components": "3.6.0-beta02",
52-
"eth-hooks": "5.0.2-beta24",
53-
"ethers": "^5.6.9",
51+
"eth-components": "3.6.0-beta04",
52+
"eth-hooks": "5.0.2-beta27",
53+
"ethers": "^5.7.1",
5454
"fortmatic": "^2.4.0",
5555
"react": "^18.2.0",
5656
"react-css-theme-switcher": "^0.3.0",
@@ -62,30 +62,30 @@
6262
"stream-browserify": "^3.0.0",
6363
"timers-browserify": "^2.0.12",
6464
"ts-invariant": "^0.10.3",
65-
"use-debounce": "^8.0.3",
65+
"use-debounce": "^8.0.4",
6666
"usehooks-ts": "^2.6.0",
6767
"util": "^0.12.4",
6868
"walletconnect": "^1.7.8",
69-
"web3modal": "^1.9.8",
70-
"zod": "^3.18.0"
69+
"web3modal": "^1.9.9",
70+
"zod": "^3.19.1"
7171
},
7272
"devDependencies": {
7373
"@dethcrypto/eth-sdk": "0.3.3",
74-
"@types/node": "^16.11.49",
75-
"@types/react": "^18.0.17",
74+
"@types/node": "^16.11.59",
75+
"@types/react": "^18.0.20",
7676
"@types/react-dom": "^18.0.6",
77-
"@typescript-eslint/eslint-plugin": "^5.36.2",
78-
"@typescript-eslint/parser": "^5.36.2",
77+
"@typescript-eslint/eslint-plugin": "^5.37.0",
78+
"@typescript-eslint/parser": "^5.37.0",
7979
"bufferutil": "^4.0.6",
80-
"eslint": "^8.22.0",
80+
"eslint": "^8.23.1",
8181
"eslint-config-airbnb": "^19.0.4",
8282
"eslint-config-airbnb-typescript": "^17.0.0",
8383
"eslint-config-prettier": "^8.5.0",
8484
"eslint-plugin-import": "^2.26.0",
8585
"eslint-plugin-jsx-a11y": "^6.6.1",
8686
"eslint-plugin-mocha": "^10.1.0",
8787
"eslint-plugin-prettier": "^4.2.1",
88-
"eslint-plugin-react": "^7.30.1",
88+
"eslint-plugin-react": "^7.31.8",
8989
"eslint-plugin-react-hooks": "^4.6.0",
9090
"eslint-plugin-unused-imports": "^2.0.0",
9191
"husky": "^8.0.1",
@@ -98,7 +98,7 @@
9898
"ts-patch": "^2.0.2",
9999
"ts-toolbelt": "^9.6.0",
100100
"tsconfig-paths": "^4.1.0",
101-
"typescript": "^4.7.4",
101+
"typescript": "^4.8.3",
102102
"typescript-transform-paths": "^3.3.1",
103103
"utf-8-validate": "^5.0.9",
104104
"yalc": "^1.0.0-pre.53"

packages/nextjs-app-ts/package.json

+37-37
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,37 @@
2121
},
2222
"dependencies": {
2323
"@ant-design/icons": "^4.7.0",
24-
"@babel/runtime": "^7.18.9",
25-
"@emotion/cache": "^11.10.1",
26-
"@emotion/react": "^11.10.0",
27-
"@ethersproject/abi": "^5.6.4",
28-
"@ethersproject/abstract-provider": "^5.6.1",
29-
"@ethersproject/address": "^5.6.1",
30-
"@ethersproject/bignumber": "^5.6.2",
31-
"@ethersproject/bytes": "^5.6.1",
32-
"@ethersproject/contracts": "^5.6.2",
33-
"@ethersproject/networks": "^5.6.4",
34-
"@ethersproject/providers": "^5.6.8",
35-
"@ethersproject/signing-key": "^5.6.2",
36-
"@ethersproject/solidity": "^5.6.1",
37-
"@ethersproject/units": "^5.6.1",
38-
"@maticnetwork/maticjs": "^3.4.0-beta.0",
24+
"@babel/runtime": "^7.19.0",
25+
"@emotion/cache": "^11.10.3",
26+
"@emotion/react": "^11.10.4",
27+
"@ethersproject/abi": "^5.7.0",
28+
"@ethersproject/abstract-provider": "^5.7.0",
29+
"@ethersproject/address": "^5.7.0",
30+
"@ethersproject/bignumber": "^5.7.0",
31+
"@ethersproject/bytes": "^5.7.0",
32+
"@ethersproject/contracts": "^5.7.0",
33+
"@ethersproject/networks": "^5.7.1",
34+
"@ethersproject/providers": "^5.7.1",
35+
"@ethersproject/signing-key": "^5.7.0",
36+
"@ethersproject/solidity": "^5.7.0",
37+
"@ethersproject/units": "^5.7.0",
38+
"@maticnetwork/maticjs": "^3.4.0",
3939
"@ramp-network/ramp-instant-sdk": "^3.2.0",
4040
"@scaffold-eth/common": "0.0.0",
4141
"@uniswap/sdk": "^3.0.3",
4242
"@uniswap/token-lists": "^1.0.0-beta.30",
43-
"antd": "^4.22.6",
43+
"antd": "^4.23.1",
4444
"buffer": "^6.0.3",
45-
"daisyui": "^2.24.0",
46-
"eth-components": "3.6.0-beta02",
47-
"eth-hooks": "5.0.2-beta24",
45+
"daisyui": "^2.27.0",
46+
"eth-components": "3.6.0-beta04",
47+
"eth-hooks": "5.0.2-beta27",
4848
"ethereum-cryptography": "^1.1.2",
49-
"ethers": "^5.6.9",
49+
"ethers": "^5.7.1",
5050
"events": "^3.3.0",
5151
"history": "^5.3.0",
5252
"http-browserify": "^1.7.0",
5353
"ipfs-http-client": "^54.0.2",
54-
"next": "12.2.5",
54+
"next": "12.3.0",
5555
"pretty-time": "^1.1.0",
5656
"process": "^0.11.10",
5757
"qrcode.react": "^3.1.0",
@@ -69,41 +69,41 @@
6969
"tailwindcss": "^3.1.8",
7070
"timers-browserify": "^2.0.12",
7171
"ts-invariant": "^0.10.3",
72-
"use-debounce": "^8.0.3",
72+
"use-debounce": "^8.0.4",
7373
"usehooks-ts": "^2.6.0",
7474
"util": "^0.12.4",
75-
"web3modal": "^1.9.8"
75+
"web3modal": "^1.9.9"
7676
},
7777
"devDependencies": {
7878
"@emotion/types": "^0.7.0",
79-
"@next/eslint-plugin-next": "^12.2.5",
80-
"@tailwindcss/aspect-ratio": "^0.4.0",
81-
"@tailwindcss/forms": "^0.5.2",
82-
"@tailwindcss/line-clamp": "^0.4.0",
83-
"@tailwindcss/typography": "^0.5.4",
84-
"@types/node": "^16.11.49",
79+
"@next/eslint-plugin-next": "^12.3.0",
80+
"@tailwindcss/aspect-ratio": "^0.4.2",
81+
"@tailwindcss/forms": "^0.5.3",
82+
"@tailwindcss/line-clamp": "^0.4.2",
83+
"@tailwindcss/typography": "^0.5.7",
84+
"@types/node": "^16.11.59",
8585
"@types/pretty-time": "^1.1.2",
8686
"@types/qrcode.react": "^1.0.2",
87-
"@types/react": "^18.0.17",
87+
"@types/react": "^18.0.20",
8888
"@types/react-blockies": "^1.4.1",
8989
"@types/react-dom": "^18.0.6",
9090
"@types/react-qr-reader": "^2.1.4",
9191
"@types/react-router-dom": "^5.3.3",
9292
"@types/react-stack-grid": "^0.7.3",
93-
"@typescript-eslint/eslint-plugin": "^5.36.2",
94-
"@typescript-eslint/parser": "^5.36.2",
93+
"@typescript-eslint/eslint-plugin": "^5.37.0",
94+
"@typescript-eslint/parser": "^5.37.0",
9595
"@web3-react/types": "^6.0.7",
96-
"autoprefixer": "^10.4.8",
96+
"autoprefixer": "^10.4.10",
9797
"cross-env": "^7.0.3",
98-
"eslint": "^8.22.0",
98+
"eslint": "^8.23.1",
9999
"eslint-config-airbnb": "^19.0.4",
100100
"eslint-config-airbnb-typescript": "^17.0.0",
101-
"eslint-config-next": "^12.2.5",
101+
"eslint-config-next": "^12.3.0",
102102
"eslint-config-prettier": "^8.5.0",
103103
"eslint-plugin-import": "^2.26.0",
104104
"eslint-plugin-jsx-a11y": "^6.6.1",
105105
"eslint-plugin-prettier": "^4.2.1",
106-
"eslint-plugin-react": "^7.30.1",
106+
"eslint-plugin-react": "^7.31.8",
107107
"eslint-plugin-react-hooks": "^4.6.0",
108108
"eslint-plugin-tailwind": "^0.2.1",
109109
"eslint-plugin-unused-imports": "^2.0.0",
@@ -116,6 +116,6 @@
116116
"surge": "^0.23.1",
117117
"tailwindcss": "^3.1.8",
118118
"tailwindcss-elevation": "^1.0.1",
119-
"typescript": "^4.7.4"
119+
"typescript": "^4.8.3"
120120
}
121121
}

0 commit comments

Comments
 (0)