We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef4613 commit 380469eCopy full SHA for 380469e
packages/contracts/scripts/prepack
@@ -9,15 +9,11 @@ yarn clean
9
yarn build
10
11
# Refresh distribution folder
12
-rm -rf dist && mkdir -p dist/types/_src
+rm -rf dist && mkdir -p ${TYPECHAIN_DIR}
13
cp -R build/abis/ dist/abis
14
-cp -R build/types/ dist/types/_src
15
-
16
-### Build Typechain bindings
+cp -R build/types/ ${TYPECHAIN_DIR}
17
18
# 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
+pushd ${TYPECHAIN_DIR}
+ls *.ts **/*.ts | xargs tsc --esModuleInterop
+popd
0 commit comments