Skip to content

Commit 6826ae4

Browse files
authored
feat: upgrade react-native-builder-bob and align output support (#65)
1 parent 96876fa commit 6826ae4

File tree

3 files changed

+47
-16
lines changed

3 files changed

+47
-16
lines changed

package.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
"name": "react-native-orientation-director",
33
"version": "2.3.2",
44
"description": "A Modern React Native library that allows you to access orientation",
5-
"main": "lib/commonjs/index",
5+
"main": "./lib/module/index.js",
66
"module": "lib/module/index",
77
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index",
9-
"source": "src/index",
8+
"source": "./src/index.tsx",
9+
"exports": {
10+
".": {
11+
"types": "./lib/typescript/src/index.d.ts",
12+
"default": "./lib/module/index.js"
13+
},
14+
"./package.json": "./package.json"
15+
},
1016
"files": [
1117
"src",
1218
"lib",
@@ -73,7 +79,7 @@
7379
"prettier": "^3.0.3",
7480
"react": "19.0.0",
7581
"react-native": "0.78.2",
76-
"react-native-builder-bob": "^0.36.0",
82+
"react-native-builder-bob": "^0.40.0",
7783
"release-it": "^15.0.0",
7884
"turbo": "^1.10.7",
7985
"typescript": "^5.2.2"
@@ -178,14 +184,13 @@
178184
"source": "src",
179185
"output": "lib",
180186
"targets": [
181-
"commonjs",
182-
"module",
183187
[
184-
"typescript",
188+
"module",
185189
{
186-
"project": "tsconfig.build.json"
190+
"esm": true
187191
}
188-
]
192+
],
193+
"typescript"
189194
]
190195
},
191196
"codegenConfig": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"jsx": "react-jsx",
1212
"lib": ["ESNext"],
1313
"module": "ESNext",
14-
"moduleResolution": "node",
14+
"moduleResolution": "bundler",
1515
"noEmit": true,
1616
"noFallthroughCasesInSwitch": true,
1717
"noImplicitReturns": true,

yarn.lock

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ __metadata:
2727
languageName: node
2828
linkType: hard
2929

30+
"@ark/schema@npm:0.45.7":
31+
version: 0.45.7
32+
resolution: "@ark/schema@npm:0.45.7"
33+
dependencies:
34+
"@ark/util": 0.45.7
35+
checksum: a25ae51ae321b225f2e1c71c4bd0c14dc92d1473209d76e1423f060b24d2852fd6aee18e644ecb84c4a5cc5855ae3e257ede7e3ee6aca3aaff136e6c9d257ac9
36+
languageName: node
37+
linkType: hard
38+
39+
"@ark/util@npm:0.45.7":
40+
version: 0.45.7
41+
resolution: "@ark/util@npm:0.45.7"
42+
checksum: 30260a534ff2fec90bcaee214247066f86f5c00dc7872200eed14bcb4262fb0ee72c866042f27ef2186ef0750b574e2f452e84d4f284d885a04154853adf3e4a
43+
languageName: node
44+
linkType: hard
45+
3046
"@babel/cli@npm:^7.23.4":
3147
version: 7.26.4
3248
resolution: "@babel/cli@npm:7.26.4"
@@ -4490,6 +4506,16 @@ __metadata:
44904506
languageName: node
44914507
linkType: hard
44924508

4509+
"arktype@npm:^2.1.15":
4510+
version: 2.1.17
4511+
resolution: "arktype@npm:2.1.17"
4512+
dependencies:
4513+
"@ark/schema": 0.45.7
4514+
"@ark/util": 0.45.7
4515+
checksum: 4cad06481c7f51719136363e3a0f422c9dea01cc7470b75fbaebdd2789e6fdb83ab53a09f9f586c0cd61101680462625ea4636ed731069931d6ea5a29277079e
4516+
languageName: node
4517+
linkType: hard
4518+
44934519
"array-buffer-byte-length@npm:^1.0.1, array-buffer-byte-length@npm:^1.0.2":
44944520
version: 1.0.2
44954521
resolution: "array-buffer-byte-length@npm:1.0.2"
@@ -13632,19 +13658,19 @@ __metadata:
1363213658
languageName: node
1363313659
linkType: hard
1363413660

13635-
"react-native-builder-bob@npm:^0.36.0":
13636-
version: 0.36.0
13637-
resolution: "react-native-builder-bob@npm:0.36.0"
13661+
"react-native-builder-bob@npm:^0.40.0":
13662+
version: 0.40.0
13663+
resolution: "react-native-builder-bob@npm:0.40.0"
1363813664
dependencies:
1363913665
"@babel/core": ^7.25.2
1364013666
"@babel/plugin-transform-strict-mode": ^7.24.7
1364113667
"@babel/preset-env": ^7.25.2
1364213668
"@babel/preset-flow": ^7.24.7
1364313669
"@babel/preset-react": ^7.24.7
1364413670
"@babel/preset-typescript": ^7.24.7
13671+
arktype: ^2.1.15
1364513672
babel-plugin-module-resolver: ^5.0.2
1364613673
browserslist: ^4.20.4
13647-
cosmiconfig: ^9.0.0
1364813674
cross-spawn: ^7.0.3
1364913675
dedent: ^0.7.0
1365013676
del: ^6.1.1
@@ -13660,7 +13686,7 @@ __metadata:
1366013686
yargs: ^17.5.1
1366113687
bin:
1366213688
bob: bin/bob
13663-
checksum: 2d47c039e3d6f90cd6a074cbe35c2dfc96868a73a6aee503fb981aace1c1ec2830517ce4910f5e368a558ed2f10302f60361cb1bf37ef341a913d125020bd2ee
13689+
checksum: 24060ce833ab3ac52f29fc8072cb15d97401aa2f8d67adc2ed7b4359f9879da65858d78e3eb0353a03374a295c931e5201373129e4341bd6f83adf120e70c209
1366413690
languageName: node
1366513691
linkType: hard
1366613692

@@ -13717,7 +13743,7 @@ __metadata:
1371713743
prettier: ^3.0.3
1371813744
react: 19.0.0
1371913745
react-native: 0.78.2
13720-
react-native-builder-bob: ^0.36.0
13746+
react-native-builder-bob: ^0.40.0
1372113747
release-it: ^15.0.0
1372213748
turbo: ^1.10.7
1372313749
typescript: ^5.2.2

0 commit comments

Comments
 (0)