Skip to content

Commit

Permalink
Include artifacts in npm package (#103)
Browse files Browse the repository at this point in the history
* Include artifacts in npm package
* Add a `prepublishOnly` script that ensures that the contract artifacts are updated before publishing the package
  • Loading branch information
JamesLefrere authored Sep 1, 2020
1 parent f7b2b3a commit 47f84c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"license": "AGPL-3.0-or-later",
"files": [
"/contracts/**/*.sol",
"!/contracts/z_mocks"
"!/contracts/z_mocks",
"/artifacts/*.json"
],
"scripts": {
"migrate": "truffle migrate --network development --reset",
Expand All @@ -24,7 +25,8 @@
"compile": "yarn buidler compile --force",
"generate-typings": "rimraf ./types/generated && typechain --target 'truffle-v5' --outDir types/generated './build/contracts/*.json'",
"prettify": "prettier --write test/*.ts test/**/*.ts types/generated/*.ts types/*.ts artifacts/*.ts",
"flatten": "sol-merger \"./contracts/**/*.sol\" ./_flat"
"flatten": "sol-merger \"./contracts/**/*.sol\" ./_flat",
"prepublishOnly": "yarn run test-prep"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 47f84c7

Please sign in to comment.