Skip to content

Commit eb4a03e

Browse files
authored
Merge pull request #928 from graphprotocol/pcv/fix-prepack-tsc
fix: correctly pass ts file list to tsc in prepack
2 parents 2ef4613 + 5050229 commit eb4a03e

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

packages/contracts/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @graphprotocol/contracts
22

3+
## 6.1.2
4+
5+
### Patch Changes
6+
7+
- Correctly pass ts file list to tsc in prepack
8+
39
## 6.1.1
410

511
### Patch Changes

packages/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/contracts",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"description": "Contracts for the Graph Protocol",
55
"directories": {
66
"test": "test"

packages/contracts/scripts/prepack

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ yarn clean
99
yarn build
1010

1111
# Refresh distribution folder
12-
rm -rf dist && mkdir -p dist/types/_src
12+
rm -rf dist && mkdir -p ${TYPECHAIN_DIR}
1313
cp -R build/abis/ dist/abis
14-
cp -R build/types/ dist/types/_src
15-
16-
### Build Typechain bindings
14+
cp -R build/types/ ${TYPECHAIN_DIR}
1715

1816
# Build and create TS declarations
19-
tsc -d ${TYPECHAIN_DIR}/_src/*.ts --outdir ${TYPECHAIN_DIR} --esModuleInterop
20-
# Copy back sources
21-
cp ${TYPECHAIN_DIR}/_src/*.ts ${TYPECHAIN_DIR}
22-
# Delete temporary src dir
23-
rm -rf ${TYPECHAIN_DIR}/_src
17+
pushd ${TYPECHAIN_DIR}
18+
ls *.ts **/*.ts | xargs tsc --esModuleInterop
19+
popd

0 commit comments

Comments
 (0)