Skip to content

Commit 1ce8167

Browse files
authored
fix: resolve package.json import error in build output and add automate version bump (#54)
1 parent 7841249 commit 1ce8167

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/react-native-detour/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@
107107
]
108108
},
109109
"release-it": {
110+
"hooks": {
111+
"after:bump": "echo \"export const version = '${version}';\nexport const SDK_HEADER_VALUE = \\`react-native/\\${version}\\`;\" > src/version.ts"
112+
},
110113
"git": {
111114
"commitMessage": "chore: release ${version}",
112115
"tagName": "v${version}"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
import { version } from "../package.json";
2-
1+
export const version = "2.1.0"; // This line will is updated automatically by releasing script
32
export const SDK_HEADER_VALUE = `react-native/${version}`;

0 commit comments

Comments
 (0)