Skip to content

Commit 2479f5c

Browse files
committed
fix: changed strategy for bump version script
1 parent 1ce8167 commit 2479f5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-detour/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
},
109109
"release-it": {
110110
"hooks": {
111-
"after:bump": "echo \"export const version = '${version}';\nexport const SDK_HEADER_VALUE = \\`react-native/\\${version}\\`;\" > src/version.ts"
111+
"after:bump": "node -e \"const fs=require('fs'); const f='./src/version.ts'; const c=fs.readFileSync(f,'utf8').replace(/version = [\\\"'].*[\\\"'];/, 'version = \\\"${version}\\\";'); fs.writeFileSync(f,c);\""
112112
},
113113
"git": {
114114
"commitMessage": "chore: release ${version}",

0 commit comments

Comments
 (0)