Skip to content

Commit

Permalink
feat: support bob.config.cjs for configuration (#442)
Browse files Browse the repository at this point in the history
### Summary

I have a library configured with `"type": "module"`. This means that I
need to provide `bob.config.cjs`, as `.js` extensions won't do. That
config file needs to be explicitly added to the cosmicConfig
  • Loading branch information
samijaber authored Sep 1, 2023
1 parent a5d472b commit c139df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-builder-bob/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { name, version } = require('../package.json');

const root = process.cwd();
const explorer = cosmiconfigSync(name, {
searchPlaces: ['package.json', `bob.config.js`],
searchPlaces: ['package.json', `bob.config.js`, 'bob.config.cjs'],
});

const FLOW_PRGAMA_REGEX = /\*?\s*@(flow)\b/m;
Expand Down

0 comments on commit c139df5

Please sign in to comment.