Skip to content

Commit 6780418

Browse files
authored
fix: remove npm publish warning (#502)
### Summary Running `npm publish` shows a warning. <img width="1123" alt="Screenshot 2023-12-05 at 02 19 55" src="https://github.com/callstack/react-native-builder-bob/assets/36528176/851601d5-9978-4660-8f8d-c39c8a3e2734"> ---- It suggested running `npm pkg fix` which automatically makes the following changes. <img width="692" alt="Screenshot 2023-12-05 at 02 21 17" src="https://github.com/callstack/react-native-builder-bob/assets/36528176/b655f798-7273-4497-8369-22f7d410df7e"> ---- I assumed `git` is the default since most of the workflows are GitHub-specific. Also, a nit where a remove an extra line break. ### Test plan N/A
1 parent c233fed commit 6780418

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/create-react-native-library/templates/common/$package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
"ios",
4646
"android"
4747
],
48-
"repository": "<%- repo -%>",
48+
"repository": {
49+
"type": "git",
50+
"url": "git+<%- repo -%>.git"
51+
},
4952
"author": "<%- author.name -%> <<%- author.email -%>> (<%- author.url -%>)",
5053
"license": "MIT",
5154
"bugs": {

packages/create-react-native-library/templates/common/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{
32
"extends": "./tsconfig",
43
"exclude": ["example"]

0 commit comments

Comments
 (0)