File tree Expand file tree Collapse file tree 2 files changed +1048
-19
lines changed
Expand file tree Collapse file tree 2 files changed +1048
-19
lines changed Original file line number Diff line number Diff line change 33 "description" : " A pure JavaScript port of SpinKit for React Native." ,
44 "version" : " 0.0.0" ,
55 "author" : " Tien Pham" ,
6- "main" : " src/ index.ts " ,
6+ "main" : " lib/commonjs/ index.js " ,
77 "license" : " MIT" ,
88 "scripts" : {
99 "example" : " yarn --cwd ./example" ,
1010 "lint" : " eslint \" src/**/*.{ts,tsx}\" " ,
11- "format" : " prettier --write 'src/**/*' 'README.md'"
11+ "format" : " prettier --write 'src/**/*' 'README.md'" ,
12+ "prepare" : " bob build"
1213 },
1314 "lint-staged" : {
1415 "src/**/*.{ts,tsx}" : [
2324 }
2425 },
2526 "devDependencies" : {
27+ "@react-native-community/bob" : " ^0.7.0" ,
2628 "@types/react" : " ^16.9.13" ,
2729 "@types/react-native" : " ^0.60.23" ,
2830 "@typescript-eslint/eslint-plugin" : " ^2.8.0" ,
4042 "peerDependencies" : {
4143 "react" : " *" ,
4244 "react-native" : " *"
45+ },
46+ "react-native" : " src/index.ts" ,
47+ "module" : " lib/module/index.js" ,
48+ "types" : " lib/typescript/index.d.ts" ,
49+ "files" : [
50+ " src" ,
51+ " lib"
52+ ],
53+ "@react-native-community/bob" : {
54+ "source" : " src" ,
55+ "output" : " lib" ,
56+ "targets" : [
57+ " commonjs" ,
58+ " module" ,
59+ " typescript"
60+ ]
4361 }
4462}
You can’t perform that action at this time.
0 commit comments