bro-framework 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/bro.js +9 -3
  2. package/package.json +1 -1
package/bin/bro.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import path from 'path';
4
4
  import fs from 'fs';
@@ -274,6 +274,12 @@ async function bootstrap() {
274
274
 
275
275
  if (command === 'dev' || command === 'start') {
276
276
  bootstrap();
277
- } else {
278
- console.log(`Usage: bro dev | bro start | bro init`);
277
+ } else if (!['sdk', 'generate-client', 'client', 'init'].includes(command)) {
278
+ console.log(`\n ${colors.bold}${colors.green}bro.js CLI${colors.reset}\n`);
279
+ console.log(` ${colors.bold}Usage:${colors.reset} bro <command>\n`);
280
+ console.log(` ${colors.bold}Commands:${colors.reset}`);
281
+ console.log(` ${colors.cyan}dev${colors.reset} Start the development server with hot-reload`);
282
+ console.log(` ${colors.cyan}start${colors.reset} Start the production server gracefully`);
283
+ console.log(` ${colors.cyan}init${colors.reset} Scaffold a new bro.config.js workspace`);
284
+ console.log(` ${colors.cyan}sdk${colors.reset} Generate a typed frontend client\n`);
279
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bro-framework",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "The No-BS Backend Framework for Node.js",
5
5
  "repository": {
6
6
  "type": "git",