diff --git a/scripts/generate-specs-cli.js b/scripts/generate-specs-cli.js index 53b263faccdf95..427eff561044ed 100644 --- a/scripts/generate-specs-cli.js +++ b/scripts/generate-specs-cli.js @@ -11,9 +11,9 @@ let RNCodegen; try { - RNCodegen = require('react-native-codegen/lib/generators/RNCodegen.js'); -} catch (e) { RNCodegen = require('../packages/react-native-codegen/lib/generators/RNCodegen.js'); +} catch (e) { + RNCodegen = require('react-native-codegen/lib/generators/RNCodegen.js'); if (!RNCodegen) { throw 'RNCodegen not found.'; }