@akanjs/devkit 0.0.134 → 0.0.136

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.
@@ -154,6 +154,9 @@ const getArgumentValue = async (argMeta, value, workspace) => {
154
154
  throw new Error(`Invalid system type: ${argMeta.type}`);
155
155
  };
156
156
  const runCommands = async (...commands) => {
157
+ process.on("unhandledRejection", (error) => {
158
+ console.error(import_chalk.default.red("[fatal]"), error);
159
+ });
157
160
  const hasPackageJson = import_fs.default.existsSync(`${__dirname}/../package.json`);
158
161
  const version = hasPackageJson ? JSON.parse(import_fs.default.readFileSync(`${__dirname}/../package.json`, "utf8")).version : "0.0.1";
159
162
  import_commander.program.version(version).description("Akan CLI");
@@ -122,6 +122,9 @@ const getArgumentValue = async (argMeta, value, workspace) => {
122
122
  throw new Error(`Invalid system type: ${argMeta.type}`);
123
123
  };
124
124
  const runCommands = async (...commands) => {
125
+ process.on("unhandledRejection", (error) => {
126
+ console.error(chalk.red("[fatal]"), error);
127
+ });
125
128
  const hasPackageJson = fs.existsSync(`${__dirname}/../package.json`);
126
129
  const version = hasPackageJson ? JSON.parse(fs.readFileSync(`${__dirname}/../package.json`, "utf8")).version : "0.0.1";
127
130
  program.version(version).description("Akan CLI");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -53,7 +53,7 @@ export declare class WorkspaceExecutor extends Executor {
53
53
  getBaseDevEnv(): {
54
54
  repoName: string;
55
55
  serveDomain: string;
56
- env: "debug" | "testing" | "local" | "develop" | "main";
56
+ env: "testing" | "local" | "debug" | "develop" | "main";
57
57
  name?: string | undefined;
58
58
  };
59
59
  scan(): Promise<WorkspaceScanResult>;