Skip to content

Commit 0e8895b

Browse files
tmigonepcarranzav
authored andcommitted
fix(contracts): build type code
Signed-off-by: Tomás Migone <[email protected]>
1 parent a4e6c26 commit 0e8895b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/contracts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"directories": {
66
"test": "test"
77
},
8+
"main": "dist/types/index.js",
89
"types": "build/types/index.d.ts",
910
"files": [
1011
"dist/**/*",

packages/contracts/scripts/build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ set -eo pipefail
77
# Build contracts
88
yarn clean
99
yarn compile
10+
tsc
1011

11-
# Refresh distribution folder
12-
rm -rf dist && mkdir -p ${TYPECHAIN_DIR}
12+
# Copy types and abis to distribution folder
13+
cp -R build/types/* dist/build/types
1314
cp -R build/abis/ dist/abis
14-
cp -R build/types/ ${TYPECHAIN_DIR}
1515

16-
tsc --esModuleInterop
16+
# Move compiled types ts
17+
mv dist/build/types dist/types

0 commit comments

Comments
 (0)