Skip to content

Commit

Permalink
fix: Update build script and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsgrn committed Dec 2, 2023
1 parent e3d781a commit 78e44c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
CDIR=$(pwd)
echo -e ">> ${BLUE}Current directory: ${NC}"
echo $CDIR

# color
RED='\033[0;31m'
GREEN='\033[0;32m'
Expand All @@ -17,26 +18,15 @@ echo -e ">> ${BLUE}Building web app...${NC}"
cd $CDIR/web

# install dependencies
pnpm i
pnpm format
pnpm build
npm i
npm build

echo -e ">> ${GREEN}Web app build complete${NC}"
echo -e ">> ${BLUE}Building server and bot script...${NC}"

cd $CDIR
pnpm i
pnpm build
tsc

echo -e ">> ${GREEN}Server and bot script build complete${NC}"

# update git
echo -e ">> ${BLUE}Updating git...${NC}"
git add .

# ask for commit message
echo -e ">> ${YELLOW}Enter commit message:${NC}"
read commitMessage
git commit -m "$commitMessage"
git push origin
git push github
echo -e ">> ${BLUE}DONE${NC}"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --write . --ignore-unknown",
"start": "node ./dist/patsabot/start.js",
"build": "tsc && cd web && npm run build",
"build": "",
"prepare": "husky install"
},
"repository": {
Expand Down

0 comments on commit 78e44c6

Please sign in to comment.