clarity-cli
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "clarity-cli", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Clarity setup for vscode.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -16,6 +16,8 @@ /************************************************************* | ||
const removeWorkspaceRoot = (value) => { | ||
return value.replace("${workspaceRoot}", workspaceRoot ); | ||
return value.replace("${workspaceRoot}", workspaceRoot); | ||
} | ||
fs.readJson(path.join(workspaceRoot, ".vscode/tasks.json")).then((tasksConfig) => { | ||
fs.readJson(path.join(workspaceRoot, ".vscode/tasks.json")).catch(() => { | ||
console.log("Couldn't find tasks.json in .vscode folder."); | ||
}).then((tasksConfig) => { | ||
if (tasksConfig && tasksConfig.tasks) { | ||
@@ -31,3 +33,6 @@ return tasksConfig.tasks.filter((task) => { | ||
return promise.then(() => { | ||
return exec(command, { cwd: workspaceRoot }); | ||
return exec(command, { cwd: workspaceRoot }).catch((error) => { | ||
console.log(`Failed to build project because of task: ${task.taskName}`); | ||
throw error; | ||
}); | ||
}); | ||
@@ -39,4 +44,4 @@ | ||
console.log("Build complete."); | ||
}).catch(() => { | ||
console.log("Couldn't find tasks.json in .vscode folder."); | ||
}).catch(()=>{ | ||
console.log("Build failed."); | ||
}); |
@@ -16,6 +16,8 @@ /************************************************************* | ||
const removeWorkspaceRoot = (value) => { | ||
return value.replace("${workspaceRoot}", workspaceRoot ); | ||
return value.replace("${workspaceRoot}", workspaceRoot); | ||
} | ||
fs.readJson(path.join(workspaceRoot, ".vscode/tasks.json")).then((tasksConfig) => { | ||
fs.readJson(path.join(workspaceRoot, ".vscode/tasks.json")).catch(() => { | ||
console.log("Couldn't find tasks.json in .vscode folder."); | ||
}).then((tasksConfig) => { | ||
if (tasksConfig && tasksConfig.tasks) { | ||
@@ -31,3 +33,6 @@ return tasksConfig.tasks.filter((task) => { | ||
return promise.then(() => { | ||
return exec(command, { cwd: workspaceRoot }); | ||
return exec(command, { cwd: workspaceRoot }).catch((error) => { | ||
console.log(`Failed to build project because of task: ${task.taskName}`); | ||
throw error; | ||
}); | ||
}); | ||
@@ -39,4 +44,4 @@ | ||
console.log("Build complete."); | ||
}).catch(() => { | ||
console.log("Couldn't find tasks.json in .vscode folder."); | ||
}).catch(()=>{ | ||
console.log("Build failed."); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
52020
51
1001
0