Skip to content

Commit 01e50ac

Browse files
committedNov 17, 2023
Switch to yarn prepare
1 parent af672ba commit 01e50ac

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
 

‎README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ Populate environment variables:
2222
- [Sentry]:
2323
- `SENTRY_DSN` (Optional): Data Source Name of Sentry project. If unset, error reporting is not enabled.
2424

25-
Build the bot:
25+
`yarn install` will build the bot automatically.
26+
27+
Start the bot:
2628

2729
```bash
28-
yarn build
30+
yarn start
2931
```
3032

31-
Start the bot:
33+
To rebuild the bot:
3234

3335
```bash
34-
yarn start
36+
yarn prepare
3537
```
3638

3739
[Matrix Client-Server API]: https://spec.matrix.org/v1.4/client-server-api/

‎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)