Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2de1aac

Browse files
committedNov 17, 2023
Switch to yarn prepare
1 parent af672ba commit 2de1aac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Populate environment variables:
2525
Build the bot:
2626

2727
```bash
28-
yarn build
28+
yarn prepare
2929
```
3030

3131
Start the bot:

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
"typescript": "^4.8.3"
4141
},
4242
"scripts": {
43-
"prebuild": "rm -rf ./dist",
44-
"build": "./node_modules/.bin/ttsc",
43+
"build": "echo -e '\\033[0;31m`yarn build` is deprecated; use `yarn prepare` instead\\033[0m' >&2 && yarn prepare",
44+
"preprepare": "rm -rf ./dist",
45+
"prepare": "./node_modules/.bin/ttsc",
4546
"start": "node ./dist/src/main.js"
4647
},
4748
"prettier": {

0 commit comments

Comments
 (0)
Please sign in to comment.