Skip to content

Commit 98fc6bb

Browse files
committed
Add bob
1 parent ec3485b commit 98fc6bb

File tree

2 files changed

+1048
-19
lines changed

2 files changed

+1048
-19
lines changed

package.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
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}": [
@@ -23,6 +24,7 @@
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",
@@ -40,5 +42,21 @@
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
}

0 commit comments

Comments
 (0)