Skip to content

Commit

Permalink
Improve "yarn start" (#900)
Browse files Browse the repository at this point in the history
* Don't force build before start

* Let "yarn start/debug" accept config file path arg

Also use "yarn start" in the README

* changelog
  • Loading branch information
AndrewFerr authored Sep 15, 2023
1 parent 29e4e2a commit 0c2de77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ by running ``yarn set version classic`` in the directory where you cloned this r
homeserverUrl: "https://example.com"
```
* Run ``node build/src/discordas.js -r -u "http://localhost:9005" -c config.yaml``
* Run ``yarn start -r -u "http://localhost:9005"``
* Modify your HSs appservices config so that it includes the generated file.
* e.g. On synapse, adding to ``app_service_config_files`` array in ``homeserver.yaml``
Expand Down
1 change: 1 addition & 0 deletions changelog.d/900.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Modify the "start" and "debug" package scripts to not trigger a TypeScript build, and to accept a user-supplied command line option for the path to the bridge configuration file.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"coverage": "tsc && nyc mocha build/test/config.js build/test",
"build": "tsc",
"postinstall": "yarn build",
"start": "yarn build && node ./build/src/discordas.js -c config.yaml",
"debug": "yarn build && node --inspect ./build/src/discordas.js -c config.yaml",
"start": "node ./build/src/discordas.js",
"debug": "node --inspect ./build/src/discordas.js",
"addbot": "node ./build/tools/addbot.js",
"adminme": "node ./build/tools/adminme.js",
"usertool": "node ./build/tools/userClientTools.js",
Expand Down

0 comments on commit 0c2de77

Please sign in to comment.