From 380469e43b052d9b569b260a38a0cc5b1d2debd7 Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Fri, 19 Jan 2024 13:39:22 -0300 Subject: [PATCH 1/2] fix: correctly pass ts file list to tsc in prepack --- packages/contracts/scripts/prepack | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/contracts/scripts/prepack b/packages/contracts/scripts/prepack index 60b4fcecd..66af2b7fb 100755 --- a/packages/contracts/scripts/prepack +++ b/packages/contracts/scripts/prepack @@ -9,15 +9,11 @@ yarn clean yarn build # Refresh distribution folder -rm -rf dist && mkdir -p dist/types/_src +rm -rf dist && mkdir -p ${TYPECHAIN_DIR} cp -R build/abis/ dist/abis -cp -R build/types/ dist/types/_src - -### Build Typechain bindings +cp -R build/types/ ${TYPECHAIN_DIR} # Build and create TS declarations -tsc -d ${TYPECHAIN_DIR}/_src/*.ts --outdir ${TYPECHAIN_DIR} --esModuleInterop -# Copy back sources -cp ${TYPECHAIN_DIR}/_src/*.ts ${TYPECHAIN_DIR} -# Delete temporary src dir -rm -rf ${TYPECHAIN_DIR}/_src +pushd ${TYPECHAIN_DIR} +ls *.ts **/*.ts | xargs tsc --esModuleInterop +popd From 5050229c8c2f05f3a6cf61dcc33306c8dc831a93 Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Fri, 19 Jan 2024 13:40:11 -0300 Subject: [PATCH 2/2] chore: bump contracts to 6.1.2 --- packages/contracts/CHANGELOG.md | 6 ++++++ packages/contracts/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/contracts/CHANGELOG.md b/packages/contracts/CHANGELOG.md index 9db6043fb..7469d1d3d 100644 --- a/packages/contracts/CHANGELOG.md +++ b/packages/contracts/CHANGELOG.md @@ -1,5 +1,11 @@ # @graphprotocol/contracts +## 6.1.2 + +### Patch Changes + +- Correctly pass ts file list to tsc in prepack + ## 6.1.1 ### Patch Changes diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 8f695a764..1126e6b2a 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/contracts", - "version": "6.1.1", + "version": "6.1.2", "description": "Contracts for the Graph Protocol", "directories": { "test": "test"