Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit da11c1b

Browse files
chore(bower/publish): read dist-tag from correct package.json
1 parent a806979 commit da11c1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/bower/publish.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ function init {
1414
TMP_DIR=$(resolveDir ../../tmp)
1515
BUILD_DIR=$(resolveDir ../../build)
1616
NEW_VERSION=$(cat $BUILD_DIR/version.txt)
17+
PROJECT_DIR=$(resolveDir ../..)
1718
# get the npm dist-tag from a custom property (distTag) in package.json
18-
DIST_TAG=$(readJsonProp "package.json" "distTag")
19+
DIST_TAG=$(readJsonProp "$PROJECT_DIR/package.json" "distTag")
1920
}
2021

2122

0 commit comments

Comments
 (0)