Skip to content

Commit 380469e

Browse files
committed
fix: correctly pass ts file list to tsc in prepack
1 parent 2ef4613 commit 380469e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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)