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.
@@ -1,4 +1,4 @@
1
- const version = "0.7.24";
1
+ const version = "0.7.26";
2
2
  const packageJson = {
3
3
  version: version};
4
4
 
@@ -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,",
@@ -1,3 +1,3 @@
1
- const version = "0.7.24";
1
+ const version = "0.7.26";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.7.24";
1
+ const version = "0.7.26";
2
2
 
3
3
  export { version };
@@ -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
  };
@@ -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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.7.24",
4
+ "version": "0.7.26",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {