From c2bea8d68e81a035767f4f3ae03e50d5b6dd4614 Mon Sep 17 00:00:00 2001 From: Ivan Vishnevskii Date: Wed, 24 Jun 2026 19:49:08 +0400 Subject: [PATCH] fix: use correct module type for `node/` (cjs) --- scripts/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index d7a0e18d..c1d1eaeb 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -55,6 +55,9 @@ jq -s '.[0] * .[1]' templates/package.json tmp_build/bundler/package.json > pkg/ # Create minimal package.json in esm/ folder with type: module echo '{"type": "module"}' > pkg/esm/package.json +# Create minimal package.json in node/ folder with type: commonjs +echo '{"type": "commonjs"}' > pkg/node/package.json + # Update files array in package.json using JQ jq '.files = ["*"] | .module="esm/parquet_wasm.js" | .types="esm/parquet_wasm.d.ts"' pkg/package.json > pkg/package.json.tmp