From 01e50ac1d5f16ed007e868171444b6d52eea00a8 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 | 10 ++++++---- package.json | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cbc3e1f..7af6516 100644 --- a/README.md +++ b/README.md @@ -22,16 +22,18 @@ Populate environment variables: - [Sentry]: - `SENTRY_DSN` (Optional): Data Source Name of Sentry project. If unset, error reporting is not enabled. -Build the bot: +`yarn install` will build the bot automatically. + +Start the bot: ```bash -yarn build +yarn start ``` -Start the bot: +To rebuild the bot: ```bash -yarn start +yarn prepare ``` [Matrix Client-Server API]: https://spec.matrix.org/v1.4/client-server-api/ 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": {