Skip to content

Commit c2bea8d

Browse files
author
Ivan Vishnevskii
committed
fix: use correct module type for node/ (cjs)
1 parent 2dbda63 commit c2bea8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jq -s '.[0] * .[1]' templates/package.json tmp_build/bundler/package.json > pkg/
5555
# Create minimal package.json in esm/ folder with type: module
5656
echo '{"type": "module"}' > pkg/esm/package.json
5757

58+
# Create minimal package.json in node/ folder with type: commonjs
59+
echo '{"type": "commonjs"}' > pkg/node/package.json
60+
5861
# Update files array in package.json using JQ
5962
jq '.files = ["*"] | .module="esm/parquet_wasm.js" | .types="esm/parquet_wasm.d.ts"' pkg/package.json > pkg/package.json.tmp
6063

0 commit comments

Comments
 (0)