Skip to content

Commit

Permalink
fix(contracts): build type code
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone authored and pcarranzav committed Apr 9, 2024
1 parent a4e6c26 commit 0e8895b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"directories": {
"test": "test"
},
"main": "dist/types/index.js",
"types": "build/types/index.d.ts",
"files": [
"dist/**/*",
Expand Down
9 changes: 5 additions & 4 deletions packages/contracts/scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ set -eo pipefail
# Build contracts
yarn clean
yarn compile
tsc

# Refresh distribution folder
rm -rf dist && mkdir -p ${TYPECHAIN_DIR}
# Copy types and abis to distribution folder
cp -R build/types/* dist/build/types
cp -R build/abis/ dist/abis
cp -R build/types/ ${TYPECHAIN_DIR}

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

0 comments on commit 0e8895b

Please sign in to comment.