File tree Expand file tree Collapse file tree 4 files changed +1672
-1318
lines changed Expand file tree Collapse file tree 4 files changed +1672
-1318
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ node_modules
3
3
.idea
4
4
dist
5
5
.env
6
- .npmrc
6
+ .npmrc
7
+ # generated by bob
8
+ lib /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
"name" : " react-native-youtube-iframe" ,
3
3
"version" : " 2.3.0" ,
4
4
"description" : " A simple wrapper around the youtube iframe js API for react native" ,
5
- "main" : " dist /index.js" ,
5
+ "main" : " ./lib/commonjs /index.js" ,
6
6
"types" : " index.d.ts" ,
7
7
"scripts" : {
8
8
"lint" : " eslint src" ,
9
- "test" : " echo \" Error: no test specified\" && exit 1" ,
10
- "build" : " rimraf ./dist && babel src --out-dir dist" ,
11
- "prepare" : " rimraf ./dist && babel src --out-dir dist"
9
+ "prepare" : " bob build"
12
10
},
13
11
"repository" : {
14
12
"type" : " git" ,
49
47
}
50
48
},
51
49
"devDependencies" : {
52
- "@babel/cli" : " ^7.2.3" ,
53
- "@babel/core" : " ^7.2.2" ,
54
- "@react-native-community/eslint-config" : " ^2.0.0" ,
55
50
"eslint" : " ^7.7.0" ,
56
51
"metro-react-native-babel-preset" : " ^0.64.0" ,
57
- "rimraf " : " ^3.0.2 "
52
+ "react-native-builder-bob " : " ^0.40.12 "
58
53
},
59
54
"dependencies" : {
60
- "events" : " ^3.2.0"
61
- }
55
+ "events" : " ^3.3.0"
56
+ },
57
+ "files" : [
58
+ " src" ,
59
+ " lib" ,
60
+ " !**/__tests__" ,
61
+ " !**/__fixtures__" ,
62
+ " !**/__mocks__"
63
+ ],
64
+ "react-native-builder-bob" : {
65
+ "source" : " src" ,
66
+ "output" : " lib" ,
67
+ "targets" : [
68
+ [
69
+ " commonjs" ,
70
+ {
71
+ "esm" : false
72
+ }
73
+ ]
74
+ ]
75
+ },
76
+ "eslintIgnore" : [
77
+ " node_modules/" ,
78
+ " lib/"
79
+ ]
62
80
}
You can’t perform that action at this time.
0 commit comments