diff --git a/.prettierrc.js b/.prettierrc.cjs similarity index 100% rename from .prettierrc.js rename to .prettierrc.cjs diff --git a/scripts/release/pre-release.sh b/scripts/release/pre-release.sh index 6b47ef180ff..19319fb6105 100755 --- a/scripts/release/pre-release.sh +++ b/scripts/release/pre-release.sh @@ -12,3 +12,6 @@ do jq ".$i = .matrix_lib_$i" package.json > package.json.new && mv package.json.new package.json && yarn prettier --write package.json fi done + +# Ensure that "type": "module" is present +jq '.type = "module"' package.json > package.json.new && mv package.json.new package.json && yarn prettier --write package.json