Skip to content

Commit 89924ec

Browse files
authored
Merge pull request #2235 from o1-labs/hattyhattington17/update-build-script
update build:bindings
2 parents 4b73037 + 96a4385 commit 89924ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bindings/scripts/build-o1js-node-artifacts.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ dune b src/bindings/mina-transaction/gen/v1/js-layout.ts \
4646
rm -rf "src/config" \
4747
&& rm "src/config.mlh" || exit 1
4848

49+
mkdir -p src/bindings/compiled/node_bindings
50+
echo '// this file exists to prevent TS from type-checking `o1js_node.bc.cjs`' \
51+
> src/bindings/compiled/node_bindings/o1js_node.bc.d.cts
52+
4953
BINDINGS_PATH=src/bindings/compiled/_node_bindings/
5054
mkdir -p "${BINDINGS_PATH}"
5155
chmod -R 777 "${BINDINGS_PATH}"
@@ -73,3 +77,5 @@ sed -i 's/function raise(t){throw caml_call1(to_exn$0,t)}/function raise(t){thro
7377

7478
chmod 777 "${BINDINGS_PATH}"/*
7579
node "src/build/fix-wasm-bindings-node.js" "${BINDINGS_PATH}"/plonk_wasm.cjs
80+
81+
cp -R "${BINDINGS_PATH}"/* "src/bindings/compiled/node_bindings"/

0 commit comments

Comments
 (0)