botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
23 stars 21 forks source link

chore(dx): log build info on startup in nlu-server #102

Closed franklevasseur closed 3 years ago

franklevasseur commented 3 years ago

This PR contains 2 commits:

  1. (8413fbba2fb38c64b5948ee5ae010b1dd6bd20a6) Simply standardize the version of typescript used by all sub packages
  2. (7fb5b1b78d07e6ad4395bf5013416d82ca7b1058) Display build information and metadata when booting nlu-server

For the second one, here's how this works:

  1. in a "postbuild" script, I generate a .buildinfo.json file at the root of nlu-server.
  2. when booting nlu-server I try reading this file and if it's present I display its content
  3. when packaging in binaries, I make sure *.json file at the root of sub packages are included in binary.

Result looks like this: image