@sparkelf/dsh-plus 0.2.2-alpha.2.6 → 0.2.2-alpha.2.7
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/lib/bin.js +7 -0
- package/lib/types/standalone-profile.js +13 -0
- package/package.json +1 -1
package/lib/bin.js
CHANGED
|
@@ -1224,6 +1224,13 @@ function ensureProfile(paths, consumerDirectory, edition) {
|
|
|
1224
1224
|
...basePackages,
|
|
1225
1225
|
...composition.packages
|
|
1226
1226
|
};
|
|
1227
|
+
for (const [alias, target] of Object.entries({
|
|
1228
|
+
"dsh-better-sidebar": "@sparkelf/dsh-better-sidebar",
|
|
1229
|
+
"dsh-sql-workbench": "@sparkelf/dsh-sql-workbench"
|
|
1230
|
+
})) {
|
|
1231
|
+
const spec = compositionPackages[target];
|
|
1232
|
+
if (spec !== void 0 && compositionPackages[alias] === void 0) compositionPackages[alias] = "npm:" + target + "@" + spec;
|
|
1233
|
+
}
|
|
1227
1234
|
const compositionBundles = composition === void 0 ? baseBundles : [...baseBundles, ...composition.bundles];
|
|
1228
1235
|
if (existsSync(manifestPath)) {
|
|
1229
1236
|
if (composition !== void 0) {
|
|
@@ -538,6 +538,19 @@ export function ensureProfile(paths, consumerDirectory, edition) {
|
|
|
538
538
|
const compositionPackages = composition === undefined
|
|
539
539
|
? basePackages
|
|
540
540
|
: { ...basePackages, ...composition.packages };
|
|
541
|
+
// Official cordis rows name the historical unscoped packages. The fork ships under
|
|
542
|
+
// `@sparkelf/*`, so the row would fail to resolve unless the profile also carries the
|
|
543
|
+
// historical name as an alias to the same version.
|
|
544
|
+
const rowAliases = {
|
|
545
|
+
'dsh-better-sidebar': '@sparkelf/dsh-better-sidebar',
|
|
546
|
+
'dsh-sql-workbench': '@sparkelf/dsh-sql-workbench',
|
|
547
|
+
};
|
|
548
|
+
for (const [alias, target] of Object.entries(rowAliases)) {
|
|
549
|
+
const spec = compositionPackages[target];
|
|
550
|
+
if (spec !== undefined && compositionPackages[alias] === undefined) {
|
|
551
|
+
compositionPackages[alias] = 'npm:' + target + '@' + spec;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
541
554
|
const compositionBundles = composition === undefined
|
|
542
555
|
? baseBundles
|
|
543
556
|
: [...baseBundles, ...composition.bundles];
|
package/package.json
CHANGED