diff --git a/build.sh b/build.sh index 8d08ad8..614239c 100755 --- a/build.sh +++ b/build.sh @@ -4,6 +4,7 @@ CDIR=$(pwd) echo -e ">> ${BLUE}Current directory: ${NC}" echo $CDIR + # color RED='\033[0;31m' GREEN='\033[0;32m' @@ -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 \ No newline at end of file +echo -e ">> ${BLUE}DONE${NC}" \ No newline at end of file diff --git a/package.json b/package.json index 6e03249..47f980f 100644 --- a/package.json +++ b/package.json @@ -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": {