Skip to content

Commit cd5905f

Browse files
author
Sergey Khomushin
committed
set-version.sh: add the dir param
1 parent d8460a9 commit cd5905f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"scripts": {
2323
"_clean": "rm -rf es && rm -rf cjs && rm -rf dist",
2424
"_set-version": "./set-version.sh $npm_package_version",
25-
"_build-ts": "tsc --declaration && npm run _set-version",
26-
"_build-cjs": "tsc --module commonjs --outDir cjs && npm run _set-version",
25+
"_build-ts": "tsc --declaration && npm run _set-version es",
26+
"_build-cjs": "tsc --module commonjs --outDir cjs && npm run _set-version cjs",
2727
"_build-bundle": "webpack --env production",
2828
"build": "npm run _clean && npm run _build-ts && npm run _build-cjs && npm run _build-bundle",
2929
"test": "jest --coverage",

set-version.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
sed -i '' -e "s/process.env.npm_package_version/'$1'/g" ./es/methods/send/send.js
4-
sed -i '' -e "s/process.env.npm_package_version/'$1'/g" ./es/methods/sendForm/sendForm.js
3+
sed -i '' -e "s/process.env.npm_package_version/'$1'/g" "./$2/methods/send/send.js"
4+
sed -i '' -e "s/process.env.npm_package_version/'$1'/g" "./$2/methods/sendForm/sendForm.js"
55

66
echo -e "\033[0;33mSDK version is $1\033[0m"

0 commit comments

Comments
 (0)