diff --git a/rename.sh b/rename.sh index 9a7b5c2..101311f 100755 --- a/rename.sh +++ b/rename.sh @@ -1,5 +1,5 @@ #!/bin/sh # Rename .js files to .cjs -rename -S .js .cjs dist/cjs/** -sed -i '' 's/\.js"/\.cjs"/g' dist/cjs/index.cjs +rename -S .js .cjs dist/cjs/**/* +sed -i '' 's/\.js"/\.cjs"/g' dist/cjs/**/*.cjs