opencode-sonarqube 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20171,6 +20171,17 @@ var SonarQubePlugin = async ({ client, directory, worktree }) => {
|
|
|
20171
20171
|
if (cwd && cwd !== "/" && cwd.length > 1) {
|
|
20172
20172
|
return cwd;
|
|
20173
20173
|
}
|
|
20174
|
+
try {
|
|
20175
|
+
const pluginPath = import.meta.url.replace("file://", "");
|
|
20176
|
+
const pathParts = pluginPath.split("/");
|
|
20177
|
+
const nodeModulesIndex = pathParts.findIndex((p) => p === "node_modules");
|
|
20178
|
+
if (nodeModulesIndex > 0) {
|
|
20179
|
+
const projectPath = pathParts.slice(0, nodeModulesIndex).join("/");
|
|
20180
|
+
if (projectPath && projectPath !== "/" && projectPath.length > 1) {
|
|
20181
|
+
return projectPath;
|
|
20182
|
+
}
|
|
20183
|
+
}
|
|
20184
|
+
} catch {}
|
|
20174
20185
|
const homeDir = process.env["HOME"] || "/Users";
|
|
20175
20186
|
return homeDir;
|
|
20176
20187
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sonarqube",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "OpenCode Plugin for SonarQube integration - Enterprise-level code quality from the start",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"homepage": "https://github.com/mguttmann/opencode-sonarqube#readme",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@opencode-ai/plugin": "^1.1.34",
|
|
41
|
-
"opencode-sonarqube": "0.1.
|
|
41
|
+
"opencode-sonarqube": "0.1.12",
|
|
42
42
|
"zod": "^3.24.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|