Skip to content

Commit

Permalink
Fix process custom script error
Browse files Browse the repository at this point in the history
  • Loading branch information
Raathigesh committed Jan 11, 2018
1 parent c4a49d0 commit 2ec49a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/renderer/util/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const createProcess = (workspace: any, args: string[]): any => {
runtimeArgs.push(configPath);
}

const runScript = getMajesticConfig(workspace.rootPath).runScript;
const majesticConfig = getMajesticConfig(workspace.rootPath);
const runScript = majesticConfig && majesticConfig.runScript;
if (runScript) {
// if the custom script starts with "jest", use the full path
const initialToken = runScript.split(" ")[0];
Expand Down

0 comments on commit 2ec49a6

Please sign in to comment.