@akanjs/devkit 0.0.135 → 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");
|