@firestartr/cli 2.7.0-snapshot-15 → 2.7.0-snapshot-17
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/build/index.js +11 -5
- 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
|
|
280417
|
-
relativePath = external_path_.relative(
|
|
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,8 +290166,8 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
290166
290166
|
title: apiDefinition.name,
|
|
290167
290167
|
};
|
|
290168
290168
|
if (repoUrl && claimPath) {
|
|
290169
|
-
const
|
|
290170
|
-
const relativePath = external_path_.relative(
|
|
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('/');
|
|
@@ -290882,6 +290882,12 @@ async function runRenderer(globalsPath, initializersPath, claimsPath, crsPath, c
|
|
|
290882
290882
|
setPath('claimsDefaults', claimsDefaults);
|
|
290883
290883
|
setRenamesEnabled(renamesEnabled);
|
|
290884
290884
|
setExcludedPaths(excludedPaths);
|
|
290885
|
+
if (!repositoryUrl) {
|
|
290886
|
+
const org = process.env['ORG'];
|
|
290887
|
+
if (org) {
|
|
290888
|
+
repositoryUrl = `https://github.com/${org}/claims`;
|
|
290889
|
+
}
|
|
290890
|
+
}
|
|
290885
290891
|
setRepositoryUrl(repositoryUrl);
|
|
290886
290892
|
setDefaultBranch(defaultBranch ?? 'main');
|
|
290887
290893
|
const catalogApp = new lib.App({
|
|
@@ -304511,7 +304517,7 @@ const crs_analyzerSubcommand = {
|
|
|
304511
304517
|
};
|
|
304512
304518
|
|
|
304513
304519
|
;// CONCATENATED MODULE: ./package.json
|
|
304514
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-
|
|
304520
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-17"}');
|
|
304515
304521
|
;// CONCATENATED MODULE: ../../package.json
|
|
304516
304522
|
const package_namespaceObject_1 = {"i8":"2.6.4"};
|
|
304517
304523
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|