浏览代码

fix: conflicting pnpm deploy command

denhampreen 2 年之前
父节点
当前提交
f88a246804
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      README.md
  2. 1 1
      package.json

+ 1 - 1
README.md

@@ -145,7 +145,7 @@ $ pnpm clean
 Deploy the contracts to Hardhat Network:
 Deploy the contracts to Hardhat Network:
 
 
 ```sh
 ```sh
-$ pnpm deploy --greeting "Bonjour, le monde!"
+$ pnpm deploy:contracts --greeting "Bonjour, le monde!"
 ```
 ```
 
 
 ## Tips
 ## Tips

+ 1 - 1
package.json

@@ -69,7 +69,7 @@
     "clean": "rimraf ./artifacts ./cache ./coverage ./types ./coverage.json && pnpm typechain",
     "clean": "rimraf ./artifacts ./cache ./coverage ./types ./coverage.json && pnpm typechain",
     "compile": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile",
     "compile": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile",
     "coverage": "hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\" && pnpm typechain",
     "coverage": "hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\" && pnpm typechain",
-    "deploy": "hardhat deploy:Greeter",
+    "deploy:contracts": "hardhat deploy:Greeter",
     "lint": "pnpm lint:sol && pnpm lint:ts && pnpm prettier:check",
     "lint": "pnpm lint:sol && pnpm lint:ts && pnpm prettier:check",
     "lint:sol": "solhint --max-warnings 0 \"contracts/**/*.sol\"",
     "lint:sol": "solhint --max-warnings 0 \"contracts/**/*.sol\"",
     "lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",
     "lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",