Skip to content

Commit c754118

Browse files
committed
Updated build script
1 parent 143d398 commit c754118

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bin/build

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ source ${0%/*}/.init
44

55
strip_babel() {
66
cp "$1" "$1-tmp"
7-
8-
if [ $(node -e 'console.log(Number.parseFloat(process.version.substring(1)) >= 7)') == "true" ]; then
9-
cat "$1-tmp" | sed 's/babel-node/node/g' | sed 's/FLAGS=.*$/FLAGS="--harmony-async-await"/g' > "$1"
10-
else
11-
cat "$1-tmp" | sed 's/babel-node/node/g' | sed 's/FLAGS=.*$/FLAGS=""/g' > "$1"
12-
fi
13-
7+
cat "$1-tmp" | sed 's/babel-node/node/g' > "$1"
148
rm "$1-tmp"
159
}
1610

0 commit comments

Comments
 (0)