@firestartr/cli 2.7.0-snapshot-16 → 2.7.0-snapshot-18

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.
Files changed (2) hide show
  1. package/build/index.js +6 -6
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -280413,8 +280413,8 @@ class BackstageInitializer extends InitializerPatches {
280413
280413
  const repoUrl = getRepositoryUrl();
280414
280414
  let relativePath;
280415
280415
  if (repoUrl && claimPath) {
280416
- const claimsRoot = getPath('claims');
280417
- relativePath = external_path_.relative(claimsRoot, claimPath)
280416
+ const repoRoot = external_path_.dirname(getPath('claims'));
280417
+ relativePath = external_path_.relative(repoRoot, claimPath)
280418
280418
  .split(external_path_.sep)
280419
280419
  .map((segment) => encodeURIComponent(segment))
280420
280420
  .join('/');
@@ -290166,13 +290166,13 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
290166
290166
  title: apiDefinition.name,
290167
290167
  };
290168
290168
  if (repoUrl && claimPath) {
290169
- const claimsRoot = getPath('claims');
290170
- const relativePath = external_path_.relative(claimsRoot, claimPath)
290169
+ const repoRoot = external_path_.dirname(getPath('claims'));
290170
+ const relativePath = external_path_.relative(repoRoot, claimPath)
290171
290171
  .split(external_path_.sep)
290172
290172
  .map((segment) => encodeURIComponent(segment))
290173
290173
  .join('/');
290174
290174
  apiAnnotations['backstage.io/edit-url'] =
290175
- `${repoUrl}/blob/${defaultBranch}/${relativePath}`;
290175
+ `${repoUrl}/blob/${getDefaultBranch()}/${relativePath}`;
290176
290176
  }
290177
290177
  const apiChart = new charts.CatalogApiChart(catalogScope, `${chartId}-api-${sanitizedApiName}`, firestartrId, {
290178
290178
  name: sanitizedApiName,
@@ -304517,7 +304517,7 @@ const crs_analyzerSubcommand = {
304517
304517
  };
304518
304518
 
304519
304519
  ;// CONCATENATED MODULE: ./package.json
304520
- const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-16"}');
304520
+ const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-18"}');
304521
304521
  ;// CONCATENATED MODULE: ../../package.json
304522
304522
  const package_namespaceObject_1 = {"i8":"2.6.4"};
304523
304523
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.7.0-snapshot-16",
3
+ "version": "2.7.0-snapshot-18",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",