Daniel Rochetti 6553779987
chore: configure new monorepo and build workflow
* prepare monorepo and move client to its package

* create nx workspace

* workspace cleanup and updates

* upgrade nx workspace and fix client package

* add basic codegen logic

* first working build script

* update nextjs app

* update generated code

* add koldstart core and client foundation

* add basic fetch implementation to client

* add stable diffusion example

* remove local output image

* remove keys

* remove more keys

* update client usage and samples

* remove grpc client code and dependencies

* rename base package

* remove core package

* continue package refactor

* rename koldstart apis

* refactor main function run api

* add listen function stub

* removed more koldstart references

* build workflow added

* minor doc updates - trigger workflow

* nx workflow action
2023-03-29 12:49:55 -03:00

24 lines
583 B
JavaScript
Executable File

#!/usr/bin/env node
const oclif = require("@oclif/core");
const path = require("path");
// Get project config
const project = path.join(__dirname, "..", "tsconfig.lib.json");
process.env.TS_NODE_PROJECT = project;
// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = "development";
// Register ts-node and path mapping
require("ts-node").register({ project, esm: true });
require("tsconfig-paths").register();
// In dev mode, always show stack traces
oclif.settings.debug = true;
// Start the CLI
oclif.run()
.then(oclif.flush)
.catch(oclif.Errors.handle);