silgi 0.29.12 → 0.29.13
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/cli/index.mjs +1 -1
- package/dist/cli/silgi.mjs +3 -1
- package/dist/types/index.d.mts +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/silgi.mjs
CHANGED
|
@@ -364,7 +364,7 @@ async function prepareCoreFile(silgi) {
|
|
|
364
364
|
silgiConfigs: [],
|
|
365
365
|
addImportItem,
|
|
366
366
|
addImportItemType,
|
|
367
|
-
|
|
367
|
+
addBuildFunction: (data) => {
|
|
368
368
|
for (const item of toArray(data)) {
|
|
369
369
|
if (item.where === "after") {
|
|
370
370
|
after.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(option)`);
|
|
@@ -398,6 +398,7 @@ async function prepareCoreFile(silgi) {
|
|
|
398
398
|
"",
|
|
399
399
|
"export async function buildSilgi(option: BuildSilgi) {",
|
|
400
400
|
"",
|
|
401
|
+
"// buildSilgiBefore",
|
|
401
402
|
...before,
|
|
402
403
|
"",
|
|
403
404
|
"const silgi = await createSilgi({",
|
|
@@ -423,6 +424,7 @@ async function prepareCoreFile(silgi) {
|
|
|
423
424
|
" }) as any,",
|
|
424
425
|
" })",
|
|
425
426
|
"",
|
|
427
|
+
"// buildSilgiAfter",
|
|
426
428
|
...after,
|
|
427
429
|
"",
|
|
428
430
|
" return silgi",
|
package/dist/types/index.d.mts
CHANGED
|
@@ -297,7 +297,7 @@ interface PrepareCore {
|
|
|
297
297
|
silgiConfigs: Record<string, any>[];
|
|
298
298
|
addImportItem: (data: GenImport | GenImport[]) => void;
|
|
299
299
|
addImportItemType: (data: GenImport | GenImport[]) => void;
|
|
300
|
-
|
|
300
|
+
addBuildFunction: (data: {
|
|
301
301
|
name: string;
|
|
302
302
|
params?: string[];
|
|
303
303
|
where: 'before' | 'after';
|