diff --git a/gen-npm-pkg.sh b/gen-npm-pkg.sh index 44ca9c5..4a2db13 100644 --- a/gen-npm-pkg.sh +++ b/gen-npm-pkg.sh @@ -54,6 +54,7 @@ for PACKAGE_DIR in "$BASE_DIR"/*; do # Remove the subfolder's package.json file if [ -f "$PACKAGE_OUTPUT_DIR/package.json" ]; then rm "$PACKAGE_OUTPUT_DIR/package.json" + rm "$PACKAGE_OUTPUT_DIR/.gitignore" fi # Extract the WASM metadata @@ -97,7 +98,7 @@ EOF for SUBDIR in "$OUTPUT_DIR"/*; do if [ -d "$SUBDIR" ]; then SUBDIR_NAME=$(basename "$SUBDIR") - echo " \"$SUBDIR_NAME\"," >> "$PACKAGE_JSON" + echo " \"$SUBDIR_NAME/**/*\"," >> "$PACKAGE_JSON" fi done