From d18229bc925131a3c6ada4e1cffc6132096c8848 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Fri, 26 Apr 2024 12:58:04 -0700 Subject: [PATCH] fix Flow failure breaking yarn run build Summary: `flow-api-translator` can't handle `module.exports`. Shift this to ESM style exports like the other built packages. Changelog: [Internal] - Fixing an internal build script broken by D56243647 Reviewed By: cipolleschi Differential Revision: D56638506 fbshipit-source-id: f5a4c7bea06b7f95300388e3d37cf0d377bc3b17 --- packages/core-cli-utils/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-cli-utils/src/index.js b/packages/core-cli-utils/src/index.js index 17cb734c70a..9d4c8354fc2 100644 --- a/packages/core-cli-utils/src/index.js +++ b/packages/core-cli-utils/src/index.js @@ -31,4 +31,4 @@ if (!process.env.BUILD_EXCLUDE_BABEL_REGISTER) { } } -module.exports = require('./index.flow.js'); +export * from './index.flow.js';