silgi 0.7.24 → 0.7.26
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
package/dist/cli/prepare.mjs
CHANGED
|
@@ -605,6 +605,7 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
605
605
|
const shareds = [];
|
|
606
606
|
const schemas = [];
|
|
607
607
|
const buildSilgiExtraContent = [];
|
|
608
|
+
const beforeBuildSilgiExtraContent = [];
|
|
608
609
|
const _silgiOptions = {};
|
|
609
610
|
const _silgiConfigs = [];
|
|
610
611
|
for (const module of silgi.scanModules) {
|
|
@@ -620,6 +621,7 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
620
621
|
shareds,
|
|
621
622
|
schemas,
|
|
622
623
|
buildSilgiExtraContent,
|
|
624
|
+
beforeBuildSilgiExtraContent,
|
|
623
625
|
_silgiOptions,
|
|
624
626
|
_silgiConfigs
|
|
625
627
|
});
|
|
@@ -679,6 +681,10 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
679
681
|
"",
|
|
680
682
|
"export async function buildSilgi(framework: FrameworkContext, moduleOptions?: Partial<SilgiRuntimeOptions>,buildOptions?: Partial<BuildConfig>) {",
|
|
681
683
|
"",
|
|
684
|
+
beforeBuildSilgiExtraContent.length > 0 ? beforeBuildSilgiExtraContent.map(({ value, type }) => {
|
|
685
|
+
return type === "function" ? value : `const ${value}`;
|
|
686
|
+
}) : "",
|
|
687
|
+
"",
|
|
682
688
|
" const silgi = await createSilgi({",
|
|
683
689
|
" framework,",
|
|
684
690
|
" shared: shareds as any,",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -312,6 +312,10 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
312
312
|
shareds: string[];
|
|
313
313
|
schemas: string[];
|
|
314
314
|
buildSilgiExtraContent: string[];
|
|
315
|
+
beforeBuildSilgiExtraContent: {
|
|
316
|
+
value: string;
|
|
317
|
+
type: 'function' | 'variable';
|
|
318
|
+
}[];
|
|
315
319
|
_silgiOptions: {
|
|
316
320
|
[key: string]: any;
|
|
317
321
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -312,6 +312,10 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
312
312
|
shareds: string[];
|
|
313
313
|
schemas: string[];
|
|
314
314
|
buildSilgiExtraContent: string[];
|
|
315
|
+
beforeBuildSilgiExtraContent: {
|
|
316
|
+
value: string;
|
|
317
|
+
type: 'function' | 'variable';
|
|
318
|
+
}[];
|
|
315
319
|
_silgiOptions: {
|
|
316
320
|
[key: string]: any;
|
|
317
321
|
};
|