From d5e39800e33b952f54506e9bb878ae6c1ad35ae2 Mon Sep 17 00:00:00 2001 From: lukachi Date: Fri, 20 Dec 2024 12:09:43 +0200 Subject: [PATCH] hotfix --- gen-npm-pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-npm-pkg.sh b/gen-npm-pkg.sh index ec83aa5..b1f4ab1 100644 --- a/gen-npm-pkg.sh +++ b/gen-npm-pkg.sh @@ -56,7 +56,7 @@ for PACKAGE_DIR in "$BASE_DIR"/*; do # Step 2: Run Rollup to create CJS format CJS_FILE="${ESM_FILE%-esm.js}-cjs.js" echo "Creating CJS format for $PACKAGE_NAME..." - rollup "$ESM_FILE" --file "$CJS_FILE" --format cjs + npx rollup "$ESM_FILE" --file "$CJS_FILE" --format cjs # Add the package export entry to the main package.json cat <> "$PACKAGE_JSON"