Skip to content

Commit

Permalink
Don't kill the process when a command isn't found (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored Jan 29, 2024
1 parent d33e0a0 commit cfd399c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/frontendlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ module.exports.cleanup = () => {


module.exports.runCommand = (commandKey) => {
return new Promise((resolve, reject) => {
let configObj = config.get();
let frontendLib = configObj.cli?.frontendLibrary;
let configObj = config.get();
let frontendLib = configObj.cli?.frontendLibrary;

if(frontendLib?.projectPath && frontendLib?.[commandKey]) {
if(frontendLib?.projectPath && frontendLib?.[commandKey]) {
return new Promise((resolve, reject) => {
let projectPath = utils.trimPath(frontendLib.projectPath);
let cmd = frontendLib[commandKey];

Expand All @@ -102,8 +102,8 @@ module.exports.runCommand = (commandKey) => {
utils.log(`${commandKey} completed with exit code: ${code}`);
resolve();
});
}
});
});
}
}

module.exports.containsFrontendLibApp = () => {
Expand Down

0 comments on commit cfd399c

Please sign in to comment.