Skip to content

Commit

Permalink
Fix the build script to handle macOS sed correctly (#8)
Browse files Browse the repository at this point in the history
* build fixes

* Update build-release.sh

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>

---------

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
  • Loading branch information
IanButterworth and DilumAluthge authored Jul 21, 2024
1 parent e564658 commit 0f674f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ npm run build
npm test
npm run pack

sed -i 's/dist/!dist/g' .gitignore

if [[ "${OSTYPE:}" == "darwin"* ]]; then
sed -i '' 's/dist/!dist/g' .gitignore
else
sed -i 's/dist/!dist/g' .gitignore
fi
git add dist
git commit -a -m "Add production dependencies & build"

Expand Down

0 comments on commit 0f674f3

Please sign in to comment.