@codedrifters/configulator 0.0.309 → 0.0.311
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/index.d.mts +159 -3
- package/lib/index.d.ts +159 -3
- package/lib/index.js +54 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +54 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -16642,6 +16642,13 @@ var PnpmWorkspace = class _PnpmWorkspace extends Component {
|
|
|
16642
16642
|
this.subprojects = options.subprojects ?? [];
|
|
16643
16643
|
this.defaultCatalog = options.defaultCatalog;
|
|
16644
16644
|
this.namedCatalogs = options.namedCatalogs;
|
|
16645
|
+
this.confirmModulesPurge = options.confirmModulesPurge;
|
|
16646
|
+
this.strictDepBuilds = options.strictDepBuilds;
|
|
16647
|
+
this.verifyDepsBeforeRun = options.verifyDepsBeforeRun;
|
|
16648
|
+
this.catalogMode = options.catalogMode;
|
|
16649
|
+
this.cleanupUnusedCatalogs = options.cleanupUnusedCatalogs;
|
|
16650
|
+
this.minimumReleaseAgeStrict = options.minimumReleaseAgeStrict;
|
|
16651
|
+
this.minimumReleaseAgeIgnoreMissingTime = options.minimumReleaseAgeIgnoreMissingTime;
|
|
16645
16652
|
project.addPackageIgnore(this.fileName);
|
|
16646
16653
|
new YamlFile(this.project, this.fileName, {
|
|
16647
16654
|
obj: () => {
|
|
@@ -16698,6 +16705,27 @@ var PnpmWorkspace = class _PnpmWorkspace extends Component {
|
|
|
16698
16705
|
if (this.namedCatalogs && Object.keys(this.namedCatalogs).length > 0) {
|
|
16699
16706
|
pnpmConfig.namedCatalogs = this.namedCatalogs;
|
|
16700
16707
|
}
|
|
16708
|
+
if (this.confirmModulesPurge !== void 0) {
|
|
16709
|
+
pnpmConfig.confirmModulesPurge = this.confirmModulesPurge;
|
|
16710
|
+
}
|
|
16711
|
+
if (this.strictDepBuilds !== void 0) {
|
|
16712
|
+
pnpmConfig.strictDepBuilds = this.strictDepBuilds;
|
|
16713
|
+
}
|
|
16714
|
+
if (this.verifyDepsBeforeRun !== void 0) {
|
|
16715
|
+
pnpmConfig.verifyDepsBeforeRun = this.verifyDepsBeforeRun;
|
|
16716
|
+
}
|
|
16717
|
+
if (this.catalogMode !== void 0) {
|
|
16718
|
+
pnpmConfig.catalogMode = this.catalogMode;
|
|
16719
|
+
}
|
|
16720
|
+
if (this.cleanupUnusedCatalogs !== void 0) {
|
|
16721
|
+
pnpmConfig.cleanupUnusedCatalogs = this.cleanupUnusedCatalogs;
|
|
16722
|
+
}
|
|
16723
|
+
if (this.minimumReleaseAgeStrict !== void 0) {
|
|
16724
|
+
pnpmConfig.minimumReleaseAgeStrict = this.minimumReleaseAgeStrict;
|
|
16725
|
+
}
|
|
16726
|
+
if (this.minimumReleaseAgeIgnoreMissingTime !== void 0) {
|
|
16727
|
+
pnpmConfig.minimumReleaseAgeIgnoreMissingTime = this.minimumReleaseAgeIgnoreMissingTime;
|
|
16728
|
+
}
|
|
16701
16729
|
return {
|
|
16702
16730
|
...packages.length > 0 ? { packages } : {},
|
|
16703
16731
|
...pnpmConfig ? { ...pnpmConfig } : {}
|
|
@@ -35383,7 +35411,7 @@ function buildStarlightConfig(options) {
|
|
|
35383
35411
|
config.social = options.social;
|
|
35384
35412
|
}
|
|
35385
35413
|
if (options.sidebar !== void 0) {
|
|
35386
|
-
config.sidebar = options.sidebar;
|
|
35414
|
+
config.sidebar = options.sidebar.map(translateSidebarItem);
|
|
35387
35415
|
}
|
|
35388
35416
|
if (options.customCss !== void 0) {
|
|
35389
35417
|
config.customCss = options.customCss;
|
|
@@ -35396,6 +35424,31 @@ function buildStarlightConfig(options) {
|
|
|
35396
35424
|
}
|
|
35397
35425
|
return config;
|
|
35398
35426
|
}
|
|
35427
|
+
function translateSidebarItem(item) {
|
|
35428
|
+
if (item === null || typeof item !== "object") {
|
|
35429
|
+
return item;
|
|
35430
|
+
}
|
|
35431
|
+
const record = item;
|
|
35432
|
+
if (typeof record.label === "string" && record.autogenerate !== void 0 && record.items === void 0) {
|
|
35433
|
+
const translated = {
|
|
35434
|
+
label: record.label,
|
|
35435
|
+
items: [{ autogenerate: record.autogenerate }]
|
|
35436
|
+
};
|
|
35437
|
+
if (record.collapsed !== void 0) {
|
|
35438
|
+
translated.collapsed = record.collapsed;
|
|
35439
|
+
}
|
|
35440
|
+
return translated;
|
|
35441
|
+
}
|
|
35442
|
+
if (Array.isArray(record.items)) {
|
|
35443
|
+
return {
|
|
35444
|
+
...record,
|
|
35445
|
+
items: record.items.map(
|
|
35446
|
+
translateSidebarItem
|
|
35447
|
+
)
|
|
35448
|
+
};
|
|
35449
|
+
}
|
|
35450
|
+
return item;
|
|
35451
|
+
}
|
|
35399
35452
|
var DEFAULT_INDEX_MDX = `---
|
|
35400
35453
|
title: Welcome
|
|
35401
35454
|
description: Starlight-powered documentation site.
|