Skip to content

Commit

Permalink
Improve package.json scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
k06a committed Feb 27, 2023
1 parent 46e90d4 commit 474aed7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarn typechain
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: yarn build
- run: yarn publish
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ cache
node_modules
coverage
coverage.json
build
dist
typechain-types
.coverage_contracts
.coverage_artifacts
.env
.idea
typechain-types
.DS_Store
*.log
mochaOutput.json
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
},
"license": "MIT",
"scripts": {
"prebuild": "rimraf ./dist && cti src -b",
"build": "tsc -p tsconfig.publish.json",
"postbuild": "echo done",
"prepublish": "yarn build",
"clean": "rimraf artifacts cache coverage contracts/hardhat-dependency-compiler dist typechain-types",
"build": "yarn typechain && cti src -b && tsc -p tsconfig.publish.json",
"prepack": "yarn clean && yarn build",
"coverage": "hardhat coverage",
"format": "yarn format-ts && yarn format-sol",
"format-ts": "prettier '**/*.ts' --write",
Expand Down

0 comments on commit 474aed7

Please sign in to comment.