Skip to content

Commit ba70ac2

Browse files
authored
fix: release and bob config (#442)
* fix: release and bob config * Fix release and bob config for bottom tabs Update release and bob configuration for react-native-bottom-tabs.
1 parent be266df commit ba70ac2

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

.changeset/dirty-mails-search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-bottom-tabs": patch
3+
---
4+
5+
fix: release and bob config
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
module.exports = {
2-
presets: [
3-
['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
2+
overrides: [
3+
{
4+
exclude: /\/node_modules\//,
5+
presets: ['module:react-native-builder-bob/babel-preset'],
6+
},
7+
{
8+
include: /\/node_modules\//,
9+
presets: ['module:@react-native/babel-preset'],
10+
},
411
],
5-
plugins: ['@react-native/babel-plugin-codegen'],
612
};

packages/react-native-bottom-tabs/package.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@
33
"version": "0.12.0",
44
"description": "Native Bottom Tabs for React Native",
55
"source": "./src/index.tsx",
6-
"main": "./lib/commonjs/index.js",
7-
"module": "./lib/module/index.js",
8-
"types": "./lib/typescript/commonjs/src/index.d.ts",
6+
"main": "./lib/module/index.js",
7+
"types": "./lib/typescript/src/index.d.ts",
98
"sideEffects": false,
109
"exports": {
1110
".": {
12-
"import": {
13-
"types": "./lib/typescript/module/src/index.d.ts",
14-
"default": "./lib/module/index.js"
15-
},
16-
"require": {
17-
"types": "./lib/typescript/commonjs/src/index.d.ts",
18-
"default": "./lib/commonjs/index.js"
19-
}
11+
"source": "./src/index.tsx",
12+
"types": "./lib/typescript/src/index.d.ts",
13+
"default": "./lib/module/index.js"
2014
},
2115
"./package.json": "./package.json",
2216
"./app.plugin.js": "./app.plugin.js"
@@ -86,18 +80,10 @@
8680
"source": "src",
8781
"output": "lib",
8882
"targets": [
89-
[
90-
"commonjs",
91-
{
92-
"esm": true,
93-
"configFile": true
94-
}
95-
],
9683
[
9784
"module",
9885
{
99-
"esm": true,
100-
"configFile": true
86+
"esm": true
10187
}
10288
],
10389
[

0 commit comments

Comments
 (0)