From 2de1aac0df5c3b2a34211baeba1fcf2f7a384cae Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Fri, 17 Nov 2023 00:06:00 -0500 Subject: [PATCH] Switch to `yarn prepare` --- README.md | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbc3e1f..2cb588f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Populate environment variables: Build the bot: ```bash -yarn build +yarn prepare ``` Start the bot: diff --git a/package.json b/package.json index 9dfb2bb..9a59d0f 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,9 @@ "typescript": "^4.8.3" }, "scripts": { - "prebuild": "rm -rf ./dist", - "build": "./node_modules/.bin/ttsc", + "build": "echo -e '\\033[0;31m`yarn build` is deprecated; use `yarn prepare` instead\\033[0m' >&2 && yarn prepare", + "preprepare": "rm -rf ./dist", + "prepare": "./node_modules/.bin/ttsc", "start": "node ./dist/src/main.js" }, "prettier": {