Skip to content

Commit 632df10

Browse files
committed
Fix release.sh
1 parent 10fe6e6 commit 632df10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ v$VERSION == "$LAST" ]]; then
3131
fi
3232

3333
# check javascript version
34-
VERSION=$(node --eval "console.log(require('$DIST_FOLDER/intro.js').version);")
34+
VERSION=$(node --eval "document = {}; console.log(require('$DIST_FOLDER/intro.js').version);")
3535

3636
if [[ v$VERSION == "$LAST" ]]; then
3737
echo "Update version in ./intro.js!"
@@ -67,4 +67,4 @@ else
6767
echo "Skipping the publish procedure"
6868
fi
6969

70-
popd
70+
popd

0 commit comments

Comments
 (0)