diff --git a/.changeset/dirty-mails-search.md b/.changeset/dirty-mails-search.md new file mode 100644 index 0000000..e6fcf80 --- /dev/null +++ b/.changeset/dirty-mails-search.md @@ -0,0 +1,5 @@ +--- +"react-native-bottom-tabs": patch +--- + +fix: release and bob config diff --git a/packages/react-native-bottom-tabs/babel.config.js b/packages/react-native-bottom-tabs/babel.config.js index 8d0fb93..0c05fd6 100644 --- a/packages/react-native-bottom-tabs/babel.config.js +++ b/packages/react-native-bottom-tabs/babel.config.js @@ -1,6 +1,12 @@ module.exports = { - presets: [ - ['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }], + overrides: [ + { + exclude: /\/node_modules\//, + presets: ['module:react-native-builder-bob/babel-preset'], + }, + { + include: /\/node_modules\//, + presets: ['module:@react-native/babel-preset'], + }, ], - plugins: ['@react-native/babel-plugin-codegen'], }; diff --git a/packages/react-native-bottom-tabs/package.json b/packages/react-native-bottom-tabs/package.json index d4ecf8c..8996f70 100644 --- a/packages/react-native-bottom-tabs/package.json +++ b/packages/react-native-bottom-tabs/package.json @@ -3,20 +3,14 @@ "version": "0.12.0", "description": "Native Bottom Tabs for React Native", "source": "./src/index.tsx", - "main": "./lib/commonjs/index.js", - "module": "./lib/module/index.js", - "types": "./lib/typescript/commonjs/src/index.d.ts", + "main": "./lib/module/index.js", + "types": "./lib/typescript/src/index.d.ts", "sideEffects": false, "exports": { ".": { - "import": { - "types": "./lib/typescript/module/src/index.d.ts", - "default": "./lib/module/index.js" - }, - "require": { - "types": "./lib/typescript/commonjs/src/index.d.ts", - "default": "./lib/commonjs/index.js" - } + "source": "./src/index.tsx", + "types": "./lib/typescript/src/index.d.ts", + "default": "./lib/module/index.js" }, "./package.json": "./package.json", "./app.plugin.js": "./app.plugin.js" @@ -86,18 +80,10 @@ "source": "src", "output": "lib", "targets": [ - [ - "commonjs", - { - "esm": true, - "configFile": true - } - ], [ "module", { - "esm": true, - "configFile": true + "esm": true } ], [