silgi 0.18.4 → 0.19.0
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/dist/_chunks/index.mjs
CHANGED
|
@@ -351,6 +351,9 @@ async function loadSilgiModuleInstance(silgiModule) {
|
|
|
351
351
|
return { silgiModule };
|
|
352
352
|
}
|
|
353
353
|
async function installModules(silgi, prepare = false) {
|
|
354
|
+
if (prepare) {
|
|
355
|
+
silgi.options.isPreparingModules = true;
|
|
356
|
+
}
|
|
354
357
|
const jiti = createJiti(silgi.options.rootDir, {
|
|
355
358
|
alias: silgi.options.alias
|
|
356
359
|
});
|
|
@@ -372,6 +375,9 @@ async function installModules(silgi, prepare = false) {
|
|
|
372
375
|
silgi.logger.error(err);
|
|
373
376
|
}
|
|
374
377
|
}
|
|
378
|
+
if (prepare) {
|
|
379
|
+
silgi.options.isPreparingModules = false;
|
|
380
|
+
}
|
|
375
381
|
}
|
|
376
382
|
async function installModule(moduleToInstall, silgi = useSilgiCLI(), inlineOptions, prepare = false) {
|
|
377
383
|
const { silgiModule } = await loadSilgiModuleInstance(moduleToInstall);
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -590,6 +590,7 @@ interface SilgiCLIOptions extends PresetOptions {
|
|
|
590
590
|
compatibilityDate: CompatibilityDates;
|
|
591
591
|
modules: (SilgiModule<any> | string | [SilgiModule | string, Record<string, any>] | undefined | null | false)[];
|
|
592
592
|
_modules: (SilgiModule<any> | string | [SilgiModule | string, Record<string, any>] | undefined | null | false)[];
|
|
593
|
+
isPreparingModules: boolean;
|
|
593
594
|
debug: boolean;
|
|
594
595
|
preset: PresetName;
|
|
595
596
|
static: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -590,6 +590,7 @@ interface SilgiCLIOptions extends PresetOptions {
|
|
|
590
590
|
compatibilityDate: CompatibilityDates;
|
|
591
591
|
modules: (SilgiModule<any> | string | [SilgiModule | string, Record<string, any>] | undefined | null | false)[];
|
|
592
592
|
_modules: (SilgiModule<any> | string | [SilgiModule | string, Record<string, any>] | undefined | null | false)[];
|
|
593
|
+
isPreparingModules: boolean;
|
|
593
594
|
debug: boolean;
|
|
594
595
|
preset: PresetName;
|
|
595
596
|
static: boolean;
|