[compiler:publish] Don't hash node_modules
ghstack-source-id: 4ac2ecc8654b1a8c149ab9d00c06cb4c401473da Pull Request resolved: https://github.com/facebook/react/pull/29147
Lauren Tan committed
May 17, 2024 at 14:55 UTC
4fbc3a37f5cf91c750dc2928050924aa8c70821a
1 file changed
+1
compiler/scripts/release/publish-manual.js
+1
@@ -157,6 +157,7 @@ async function main() {
157
const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
158
const { hash } = await hashElement(pkgDir, {
159
encoding: "hex",
160
+ folders: { exclude: ["node_modules"] },
161
files: { exclude: [".DS_Store"] },
162
});
163
const truncatedHash = hash.slice(0, 7);