We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4e6c26 commit 0e8895bCopy full SHA for 0e8895b
packages/contracts/package.json
@@ -5,6 +5,7 @@
5
"directories": {
6
"test": "test"
7
},
8
+ "main": "dist/types/index.js",
9
"types": "build/types/index.d.ts",
10
"files": [
11
"dist/**/*",
packages/contracts/scripts/build
@@ -7,10 +7,11 @@ set -eo pipefail
# Build contracts
yarn clean
yarn compile
+tsc
-# Refresh distribution folder
12
-rm -rf dist && mkdir -p ${TYPECHAIN_DIR}
+# Copy types and abis to distribution folder
13
+cp -R build/types/* dist/build/types
14
cp -R build/abis/ dist/abis
-cp -R build/types/ ${TYPECHAIN_DIR}
15
16
-tsc --esModuleInterop
+# Move compiled types ts
17
+mv dist/build/types dist/types
0 commit comments