From 53dbd1d5fefa75c5e7c8c46f899fe7596d0e533b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Thu, 2 Oct 2025 13:46:47 +0200 Subject: [PATCH 1/2] fix: release and bob config --- .../react-native-bottom-tabs/babel.config.js | 12 ++++++--- .../react-native-bottom-tabs/package.json | 26 +++++-------------- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/packages/react-native-bottom-tabs/babel.config.js b/packages/react-native-bottom-tabs/babel.config.js index 8d0fb931..0c05fd69 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 d4ecf8cc..8996f708 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 } ], [ From 04772e1c880cdbf3909e1cb49452dc5f3851e708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Thu, 2 Oct 2025 14:52:41 +0200 Subject: [PATCH 2/2] Fix release and bob config for bottom tabs Update release and bob configuration for react-native-bottom-tabs. --- .changeset/dirty-mails-search.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/dirty-mails-search.md diff --git a/.changeset/dirty-mails-search.md b/.changeset/dirty-mails-search.md new file mode 100644 index 00000000..e6fcf805 --- /dev/null +++ b/.changeset/dirty-mails-search.md @@ -0,0 +1,5 @@ +--- +"react-native-bottom-tabs": patch +--- + +fix: release and bob config