Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
fix: version script to build project
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Jul 2, 2020
1 parent a7916a7 commit 61d3b45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion version.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/sh -au
#!/bin/sh -eu

# usage
# ./version.sh 0.2.0

# shellcheck disable=SC2039
test -z "${1-}" && echo -e "\033[0;31mversion cannot be empty. exiting.\033[0m" && exit 1

cd "packages/fox-suite"
pnpm run build
cd ../..

# shellcheck disable=SC2046,SC2116,SC2010
packageJsonFiles=$(echo $(ls -- **/**/package.json | grep -v node_modules) test/package.json package.json lerna.json)
for packageJsonFile in $packageJsonFiles; do
Expand Down

0 comments on commit 61d3b45

Please sign in to comment.