Skip to content

Commit 74d2baa

Browse files
authored
Follow root level naming convention as proposed in #977 (#1006)
1 parent 8c65441 commit 74d2baa

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

package.json

+25-17
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,42 @@
99
]
1010
},
1111
"scripts": {
12-
"account": "yarn workspace @se-2/hardhat account",
12+
"account": "yarn hardhat:account",
1313
"account:import": "yarn workspace @se-2/hardhat account:import",
1414
"account:generate": "yarn workspace @se-2/hardhat account:generate",
15-
"chain": "yarn workspace @se-2/hardhat chain",
16-
"fork": "yarn workspace @se-2/hardhat fork",
17-
"deploy": "yarn workspace @se-2/hardhat deploy",
18-
"verify": "yarn workspace @se-2/hardhat verify",
19-
"hardhat-verify": "yarn workspace @se-2/hardhat hardhat-verify",
20-
"compile": "yarn workspace @se-2/hardhat compile",
15+
"chain": "yarn hardhat:chain",
16+
"compile": "yarn hardhat:compile",
17+
"deploy": "yarn hardhat:deploy",
18+
"fork": "yarn hardhat:fork",
19+
"format": "yarn next:format && yarn hardhat:format",
2120
"generate": "yarn account:generate",
22-
"flatten": "yarn workspace @se-2/hardhat flatten",
21+
"hardhat:account": "yarn workspace @se-2/hardhat account",
22+
"hardhat:chain": "yarn workspace @se-2/hardhat chain",
23+
"hardhat:check-types": "yarn workspace @se-2/hardhat check-types",
24+
"hardhat:compile": "yarn workspace @se-2/hardhat compile",
25+
"hardhat:deploy": "yarn workspace @se-2/hardhat deploy",
26+
"hardhat:flatten": "yarn workspace @se-2/hardhat flatten",
27+
"hardhat:fork": "yarn workspace @se-2/hardhat fork",
28+
"hardhat:format": "yarn workspace @se-2/hardhat format",
29+
"hardhat:generate": "yarn workspace @se-2/hardhat generate",
30+
"hardhat:hardhat-verify": "yarn workspace @se-2/hardhat hardhat-verify",
2331
"hardhat:lint": "yarn workspace @se-2/hardhat lint",
2432
"hardhat:lint-staged": "yarn workspace @se-2/hardhat lint-staged",
25-
"hardhat:format": "yarn workspace @se-2/hardhat format",
26-
"hardhat:check-types": "yarn workspace @se-2/hardhat check-types",
2733
"hardhat:test": "yarn workspace @se-2/hardhat test",
28-
"test": "yarn hardhat:test",
29-
"format": "yarn next:format && yarn hardhat:format",
30-
"start": "yarn workspace @se-2/nextjs dev",
31-
"next:lint": "yarn workspace @se-2/nextjs lint",
32-
"next:format": "yarn workspace @se-2/nextjs format",
33-
"next:check-types": "yarn workspace @se-2/nextjs check-types",
34+
"hardhat:verify": "yarn workspace @se-2/hardhat verify",
35+
"lint": "yarn nextjs:lint && yarn hardhat:lint",
3436
"next:build": "yarn workspace @se-2/nextjs build",
37+
"next:check-types": "yarn workspace @se-2/nextjs check-types",
38+
"next:format": "yarn workspace @se-2/nextjs format",
39+
"next:lint": "yarn workspace @se-2/nextjs lint",
3540
"next:serve": "yarn workspace @se-2/nextjs serve",
3641
"postinstall": "husky",
3742
"precommit": "lint-staged",
43+
"start": "yarn workspace @se-2/nextjs dev",
44+
"test": "yarn hardhat:test",
3845
"vercel": "yarn workspace @se-2/nextjs vercel",
39-
"vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo"
46+
"vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo",
47+
"verify": "yarn hardhat:verify"
4048
},
4149
"packageManager": "[email protected]",
4250
"devDependencies": {

packages/hardhat/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"version": "0.0.1",
44
"scripts": {
55
"account": "hardhat run scripts/listAccount.ts",
6-
"account:import": "hardhat run scripts/importAccount.ts",
76
"account:generate": "hardhat run scripts/generateAccount.ts",
7+
"account:import": "hardhat run scripts/importAccount.ts",
88
"chain": "hardhat node --network hardhat --no-deploy",
99
"check-types": "tsc --noEmit --incremental",
1010
"compile": "hardhat compile",
1111
"deploy": "ts-node scripts/runHardhatDeployWithPK.ts",
12+
"flatten": "hardhat flatten",
1213
"fork": "MAINNET_FORKING_ENABLED=true hardhat node --network hardhat --no-deploy",
14+
"format": "prettier --write './**/*.(ts|sol)'",
1315
"generate": "yarn account:generate",
14-
"flatten": "hardhat flatten",
16+
"hardhat-verify": "hardhat verify",
1517
"lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts",
1618
"lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore",
17-
"format": "prettier --write './**/*.(ts|sol)'",
1819
"test": "REPORT_GAS=true hardhat test --network hardhat",
19-
"verify": "hardhat etherscan-verify",
20-
"hardhat-verify": "hardhat verify"
20+
"verify": "hardhat etherscan-verify"
2121
},
2222
"devDependencies": {
2323
"@ethersproject/abi": "^5.7.0",

packages/nextjs/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"private": true,
44
"version": "0.1.0",
55
"scripts": {
6-
"dev": "next dev",
7-
"start": "next dev",
86
"build": "next build",
9-
"serve": "next start",
10-
"lint": "next lint",
11-
"format": "prettier --write . '!(node_modules|.next|contracts)/**/*'",
127
"check-types": "tsc --noEmit --incremental",
8+
"dev": "next dev",
9+
"format": "prettier --write . '!(node_modules|.next|contracts)/**/*'",
10+
"lint": "next lint",
11+
"serve": "next start",
12+
"start": "next dev",
1313
"vercel": "vercel --build-env YARN_ENABLE_IMMUTABLE_INSTALLS=false --build-env ENABLE_EXPERIMENTAL_COREPACK=1",
1414
"vercel:yolo": "vercel --build-env YARN_ENABLE_IMMUTABLE_INSTALLS=false --build-env ENABLE_EXPERIMENTAL_COREPACK=1 --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true"
1515
},

0 commit comments

Comments
 (0)