Skip to content

Commit

Permalink
Switch to yarn prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Nov 17, 2023
1 parent af672ba commit 01e50ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 01e50ac

Please sign in to comment.