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": {