Skip to content

Commit

Permalink
chore: prefer the local react-native-codegen package
Browse files Browse the repository at this point in the history
This allows us to move `react-native-codegen` from the template's
dependencies to root without breaking build.
  • Loading branch information
tido64 committed Aug 26, 2021
1 parent 4a96216 commit 3bac51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-specs-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
Expand Down

0 comments on commit 3bac51f

Please sign in to comment.