Skip to content

Commit 2099e32

Browse files
committed
chore: configure bob
1 parent c18b0a4 commit 2099e32

File tree

4 files changed

+1298
-17
lines changed

4 files changed

+1298
-17
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ bin/
4646
\.buckd/
4747
android/app/libs
4848
android/keystores/debug.keystore
49+
50+
# generated by bob
51+
lib/

package.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
"name": "reanimated-bottom-sheet",
33
"version": "1.0.0-alpha.8",
44
"description": "Bottom sheet component",
5-
"main": "index.js",
5+
"main": "lib/commonjs/index.js",
6+
"module": "lib/module/index.js",
7+
"react-native": "src/index.js",
68
"types": "reanimated-bottom-sheet.d.ts",
79
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 1"
10+
"test": "echo \"Error: no test specified\" && exit 1",
11+
"prepare": "bob build"
912
},
1013
"keywords": [
1114
"react-native",
@@ -15,7 +18,8 @@
1518
"handler"
1619
],
1720
"files": [
18-
"index.js",
21+
"lib/",
22+
"src/",
1923
"reanimated-bottom-sheet.d.ts",
2024
"README.md"
2125
],
@@ -25,17 +29,25 @@
2529
"url": "git+https://github.com/osdnk/reanimated-bottom-sheet.git"
2630
},
2731
"license": "MIT",
28-
"readmeFilename": "README.md",
2932
"peerDependencies": {
3033
"react": "*",
3134
"react-native": "*",
3235
"react-native-gesture-handler": "*",
3336
"react-native-reanimated": "*"
3437
},
3538
"devDependencies": {
39+
"@react-native-community/bob": "^0.3.3",
3640
"babel-eslint": "^10.0.1",
3741
"eslint": "^5.15.1",
3842
"eslint-plugin-react": "^7.12.4",
3943
"react-native-reanimated": "^1.0.0-alpha.12"
44+
},
45+
"@react-native-community/bob": {
46+
"source": "src",
47+
"output": "lib",
48+
"targets": [
49+
"commonjs",
50+
"module"
51+
]
4052
}
4153
}

index.js renamed to src/index.js

File renamed without changes.

0 commit comments

Comments
 (0)