Skip to content

Commit c139df5

Browse files
authored
feat: support bob.config.cjs for configuration (#442)
### 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
1 parent a5d472b commit c139df5

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native-builder-bob/src

1 file changed

+1
-1
lines changed

packages/react-native-builder-bob/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const { name, version } = require('../package.json');
1818

1919
const root = process.cwd();
2020
const explorer = cosmiconfigSync(name, {
21-
searchPlaces: ['package.json', `bob.config.js`],
21+
searchPlaces: ['package.json', `bob.config.js`, 'bob.config.cjs'],
2222
});
2323

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

0 commit comments

Comments
 (0)