Skip to content

Commit a3d136e

Browse files
authored
Publish package with build output in dist/ (#207)
This includes, among other things, the contract ABIs and TypeChain bindings for the contracts.
1 parent 67dc99f commit a3d136e

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules/
33

44
# Ignore truffle stuff
55
build/
6+
dist/
67

78
# Coverage tests
89
coverage/

.npmignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Ignore zeppelin contracts
2+
node_modules/
3+
4+
# Ignore truffle stuff
5+
build/
6+
7+
# Coverage tests
8+
coverage/
9+
10+
.privkey.txt
11+
.infurakey.txt
12+
.DS_Store

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
"truffle-abi": "^1.0.3",
3535
"truffle-assertions": "^0.9.2",
3636
"truffle-flattener": "^1.4.4",
37-
"typechain": "^1.0.5"
37+
"typechain": "^1.0.5",
38+
"typechain-target-ethers": "^1.0.4"
3839
},
3940
"scripts": {
41+
"prepare": "npm run build && npm run typechain && cp -R build dist",
4042
"build": "npm run compile && npm run flatten && npm run abi:extract",
4143
"clean": "rm -rf build/contracts",
4244
"compile": "truffle compile --all",
@@ -80,5 +82,6 @@
8082
"bugs": {
8183
"url": "https://github.com/graphprotocol/contracts/issues"
8284
},
83-
"homepage": "https://github.com/graphprotocol/contracts#readme"
85+
"homepage": "https://github.com/graphprotocol/contracts#readme",
86+
"types": "dist/typechain/contracts/index.d.ts"
8487
}

0 commit comments

Comments
 (0)