Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clarity-cli

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clarity-cli - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

templates/project-template/README.md

2

package.json
{
"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.");
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc