@coana-tech/cli 14.12.139 → 14.12.140
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/cli.mjs +28 -8
- package/package.json +1 -1
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
- package/repos/coana-tech/javap-service/javap-service.jar +0 -0
package/cli.mjs
CHANGED
|
@@ -228907,17 +228907,20 @@ async function actuallyRunInstall(specificPackagesArgs = [], dir) {
|
|
|
228907
228907
|
async function getWorkspacePathsFromPackageJSON(projectFolder, useDotWhenNoWorkspaces = false) {
|
|
228908
228908
|
const rootPackageJson = getPackageJsonObject(projectFolder);
|
|
228909
228909
|
if (!rootPackageJson) {
|
|
228910
|
-
|
|
228910
|
+
return { validProject: false, error: "missing root package.json" };
|
|
228911
228911
|
}
|
|
228912
228912
|
const workspaces = rootPackageJson.workspaces;
|
|
228913
228913
|
if (!workspaces) {
|
|
228914
|
-
if (!useDotWhenNoWorkspaces)
|
|
228915
|
-
|
|
228914
|
+
if (!useDotWhenNoWorkspaces) {
|
|
228915
|
+
return { validProject: false, error: `no workspaces defined in package.json for ${projectFolder}` };
|
|
228916
|
+
}
|
|
228917
|
+
return { validProject: true, workspacePaths: ["."] };
|
|
228916
228918
|
}
|
|
228917
|
-
|
|
228919
|
+
const workspacePaths = (await glob("packages" in workspaces ? workspaces.packages : workspaces, {
|
|
228918
228920
|
ignore: ["node_modules/**", "**/node_modules/**"],
|
|
228919
228921
|
cwd: projectFolder
|
|
228920
228922
|
})).filter((fileOrDir) => existsSync10(resolve18(projectFolder, fileOrDir, "package.json")));
|
|
228923
|
+
return { validProject: true, workspacePaths };
|
|
228921
228924
|
}
|
|
228922
228925
|
async function getWorktreePathsFromPackageJSON(projectFolder, useDotWhenNoWorkspaces = false) {
|
|
228923
228926
|
const visited = /* @__PURE__ */ new Set();
|
|
@@ -228927,10 +228930,15 @@ async function getWorktreePathsFromPackageJSON(projectFolder, useDotWhenNoWorksp
|
|
|
228927
228930
|
const currentFolder = worklist.pop();
|
|
228928
228931
|
if (visited.has(currentFolder)) continue;
|
|
228929
228932
|
visited.add(currentFolder);
|
|
228930
|
-
|
|
228933
|
+
const result = await getWorkspacePathsFromPackageJSON(
|
|
228931
228934
|
resolve18(projectFolder, currentFolder),
|
|
228932
228935
|
currentFolder !== "." || useDotWhenNoWorkspaces
|
|
228933
|
-
)
|
|
228936
|
+
);
|
|
228937
|
+
if (!result.validProject) {
|
|
228938
|
+
logger.warn(`Skipping invalid project at ${resolve18(projectFolder, currentFolder)}: ${result.error}`);
|
|
228939
|
+
continue;
|
|
228940
|
+
}
|
|
228941
|
+
for (const relWsPath of result.workspacePaths) {
|
|
228934
228942
|
workspacePaths.add(join10(currentFolder, relWsPath));
|
|
228935
228943
|
worklist.push(join10(currentFolder, relWsPath));
|
|
228936
228944
|
}
|
|
@@ -229524,7 +229532,19 @@ var NpmSocketUpgradeManager = class {
|
|
|
229524
229532
|
const fileName3 = basename7(lockFile);
|
|
229525
229533
|
const isPnpmLockFile = fileName3 === "pnpm-lock.yaml" || fileName3 === "pnpm-lock.yml";
|
|
229526
229534
|
const isYarnBerry = fileName3 === "yarn.lock" && await getYarnType(resolve24(this.rootDir, subprojectDir)) === "berry";
|
|
229527
|
-
|
|
229535
|
+
let workspaces;
|
|
229536
|
+
if (isPnpmLockFile) {
|
|
229537
|
+
workspaces = await getWorkspacePathsFromPnpmLockFile(resolve24(this.rootDir, subprojectDir), true);
|
|
229538
|
+
} else if (isYarnBerry) {
|
|
229539
|
+
workspaces = await getWorktreePathsFromPackageJSON(resolve24(this.rootDir, subprojectDir), true);
|
|
229540
|
+
} else {
|
|
229541
|
+
const result = await getWorkspacePathsFromPackageJSON(resolve24(this.rootDir, subprojectDir), true);
|
|
229542
|
+
if (!result.validProject) {
|
|
229543
|
+
logger.warn(`Skipping invalid project at ${resolve24(this.rootDir, subprojectDir)}: ${result.error}`);
|
|
229544
|
+
continue;
|
|
229545
|
+
}
|
|
229546
|
+
workspaces = result.workspacePaths;
|
|
229547
|
+
}
|
|
229528
229548
|
for (const workspace of workspaces) {
|
|
229529
229549
|
workspaceToSubproject.set(join12(subprojectDir, workspace), subprojectDir);
|
|
229530
229550
|
}
|
|
@@ -254963,7 +254983,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
254963
254983
|
}
|
|
254964
254984
|
|
|
254965
254985
|
// dist/version.js
|
|
254966
|
-
var version3 = "14.12.
|
|
254986
|
+
var version3 = "14.12.140";
|
|
254967
254987
|
|
|
254968
254988
|
// dist/cli-core.js
|
|
254969
254989
|
var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|