Skip to content

Commit c151bd6

Browse files
committed
fix: add missing files for publishing in template
1 parent b4964d7 commit c151bd6

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

templates/library/$package.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"react-native": "src/index.tsx",
99
"files": [
1010
"src",
11-
"lib"
11+
"lib",
12+
"android",
13+
"ios",
14+
"<%= project.package %>.podspec"
1215
],
1316
"scripts": {
1417
"test": "jest",
@@ -18,11 +21,7 @@
1821
"example": "yarn --cwd example",
1922
"bootstrap": "yarn example && yarn && cd example/ios && pod install"
2023
},
21-
"keywords": [
22-
"react-native",
23-
"ios",
24-
"android"
25-
],
24+
"keywords": ["react-native", "ios", "android"],
2625
"repository": "<%= repo %>",
2726
"author": "<%= author.name %> <<%= author.email %>> (<%= author.url %>)",
2827
"license": "MIT",
@@ -54,9 +53,7 @@
5453
},
5554
"jest": {
5655
"preset": "react-native",
57-
"modulePathIgnorePatterns": [
58-
"<rootDir>/lib/"
59-
]
56+
"modulePathIgnorePatterns": ["<rootDir>/lib/"]
6057
},
6158
"husky": {
6259
"hooks": {
@@ -65,10 +62,7 @@
6562
}
6663
},
6764
"eslintConfig": {
68-
"extends": [
69-
"@react-native-community",
70-
"prettier"
71-
],
65+
"extends": ["@react-native-community", "prettier"],
7266
"rules": {
7367
"prettier/prettier": [
7468
"error",
@@ -84,10 +78,6 @@
8478
"@react-native-community/bob": {
8579
"source": "src",
8680
"output": "lib",
87-
"targets": [
88-
"commonjs",
89-
"module",
90-
"typescript"
91-
]
81+
"targets": ["commonjs", "module", "typescript"]
9282
}
9383
}

0 commit comments

Comments
 (0)