From 06a97b674221b8743a6986b67f9d5ea548004f72 Mon Sep 17 00:00:00 2001 From: Nagarjun Sanji Date: Fri, 20 Sep 2024 09:27:59 +0530 Subject: [PATCH] bug fix (#60) * bug fix * bug fix --------- Co-authored-by: Nagarjun Sanji --- .vscode/launch.json | 6 ++++-- .vscode/tasks.json | 12 +++--------- esbuild.js | 2 ++ package.json | 4 ++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 97a3688..f53f0ec 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,8 @@ "outFiles": ["${workspaceFolder}/dist/**/*.js"], "preLaunchTask": "${defaultBuildTask}", "env": { - "NODE_ENV": "development" + "NODE_ENV": "development", + "LATEST_TAG": "0.0.0" } }, { @@ -27,7 +28,8 @@ ], "outFiles": ["${workspaceFolder}/dist/**/*.js"], "env": { - "NODE_ENV": "test" + "NODE_ENV": "test", + "LATEST_TAG": "0.0.0" } } ] diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 8ed7f99..9676390 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,10 +5,7 @@ "tasks": [ { "label": "watch", - "dependsOn": [ - "npm: watch:tsc", - "npm: watch:esbuild" - ], + "dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"], "presentation": { "reveal": "never" }, @@ -54,11 +51,8 @@ }, { "label": "tasks: watch-tests", - "dependsOn": [ - "npm: watch", - "npm: watch-tests" - ], + "dependsOn": ["npm: watch", "npm: watch-tests"], "problemMatcher": [] } ] -} \ No newline at end of file +} diff --git a/esbuild.js b/esbuild.js index 86e7dec..7f7d7bd 100644 --- a/esbuild.js +++ b/esbuild.js @@ -46,6 +46,8 @@ async function main() { url: "https://sentry.debricked.com/", release: { name: "vs-code-extension@" + process.env.LATEST_TAG, + dist: process.env.LATEST_TAG, + cleanArtifacts: true, }, }), ], diff --git a/package.json b/package.json index e9d546a..0d1b76e 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,7 @@ "vscode:prepublish": "npm run package", "compile": "npm run check-types && npm run lint && node esbuild.js", "watch": "npm-run-all -p watch:*", - "watch:esbuild": "node esbuild.js --watch", + "watch:esbuild": "set NODE_ENV=development && set LATEST_TAG=0.0.0&& node esbuild.js --watch", "watch:tsc": "tsc --noEmit --watch --project tsconfig.json", "package": "npm run check-types && npm run lint && node esbuild.js --production", "compile-tests": "npm run clean && tsc -p . --outDir out", @@ -129,7 +129,7 @@ "clean-all": "rimraf out && rimraf dist && rimraf coverage && rimraf .vscode-test", "vsce": "vsce package", "madge": "npm run compile-tests && rimraf out\\test && madge --include-npm --image graph.svg out", - "sentry:sourcemaps": "sentry-cli sourcemaps inject --org debricked --project visual-studio-code-extensions out && sentry-cli --url https://sentry.debricked.com/ sourcemaps upload --org debricked --project visual-studio-code-extensions out" + "sentry:sourcemaps": "sentry-cli --url https://sentry.debricked.com/ sourcemaps upload --org debricked --project visual-studio-code-extensions out --release vs-code-extension@0.0.0" }, "devDependencies": { "@sentry/cli": "^2.36.1",