unimal-jp / spear

The spear OSS repository
https://late-cloud-6411.spearly.app
MIT License
10 stars 1 forks source link

Wait for finishing the magic process in main(). #198

Closed mantaroh closed 1 year ago

mantaroh commented 1 year ago

What is this?

This fix will wait for finishing the magic process in main() function.
Previous implementation doesn't wait for it, so return exit 0 always.

https://github.com/unimal-jp/spear/blob/c0a2544c09bd72f9e84694678bca6e395005086c/packages/spear-cli/src/index.ts#L29

これは何?

メインの関数で magic プロセスの終了を待つようにしています。
今までの実装だと、その処理を待たずに常に 0 を返していました。

https://github.com/unimal-jp/spear/blob/c0a2544c09bd72f9e84694678bca6e395005086c/packages/spear-cli/src/index.ts#L29