silgi 0.29.9 → 0.29.11

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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.29.9";
4
+ const version = "0.29.11";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -365,12 +365,12 @@ async function prepareCoreFile(silgi) {
365
365
  addImportItem,
366
366
  addImportItemType,
367
367
  addFunction: (data) => {
368
- for (const item of data) {
368
+ for (const item of toArray(data)) {
369
369
  if (item.where === "after") {
370
- after.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(framework)`);
370
+ after.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(option)`);
371
371
  }
372
372
  if (item.where === "before") {
373
- before.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(framework)`);
373
+ before.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(option)`);
374
374
  }
375
375
  }
376
376
  }
@@ -185,12 +185,6 @@ interface SilgiCLIHooks extends SilgiHooks {
185
185
  */
186
186
  'close': (silgi: SilgiCLI) => HookResult;
187
187
  'reload:scan': (path: string, stats?: Stats) => HookResult;
188
- 'prepare:createCoreFramework': (options: Pick<ImportItem, 'customImports' | 'importItems'> & {
189
- functions?: {
190
- name: string;
191
- params?: string[];
192
- }[];
193
- }) => HookResult;
194
188
  'prepare:createDTSFramework': (options: ImportItem) => HookResult;
195
189
  /**
196
190
  * Allows extending compatibility checks.
@@ -307,7 +301,11 @@ interface PrepareCore {
307
301
  name: string;
308
302
  params?: string[];
309
303
  where: 'before' | 'after';
310
- }[]) => void;
304
+ }[] | {
305
+ name: string;
306
+ params?: string[];
307
+ where: 'before' | 'after';
308
+ }) => void;
311
309
  }
312
310
 
313
311
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.29.9",
4
+ "version": "0.29.11",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -83,7 +83,7 @@
83
83
  "@fastify/deepmerge": "^3.1.0",
84
84
  "@oxc-parser/wasm": "^0.60.0",
85
85
  "@standard-schema/spec": "^1.0.0",
86
- "apiful": "^2.0.2",
86
+ "apiful": "^2.1.0",
87
87
  "c12": "^3.0.3",
88
88
  "chokidar": "^4.0.3",
89
89
  "citty": "^0.1.6",
@@ -123,17 +123,17 @@
123
123
  "@antfu/eslint-config": "^4.12.0",
124
124
  "@nuxt/kit": "^3.16.2",
125
125
  "@nuxt/schema": "^3.16.2",
126
- "@silgi/ecosystem": "^0.4.10",
126
+ "@silgi/ecosystem": "^0.5.0",
127
127
  "@types/node": "^22.14.1",
128
128
  "@types/semver": "^7.7.0",
129
129
  "@vitest/coverage-v8": "3.0.5",
130
- "eslint": "^9.25.0",
130
+ "eslint": "^9.25.1",
131
131
  "h3": "^1.15.1",
132
132
  "nitropack": "^2.11.9",
133
133
  "nuxt": "^3.16.2",
134
134
  "typescript": "^5.8.3",
135
135
  "unbuild": "^3.5.0",
136
- "vitest": "^3.1.1",
136
+ "vitest": "^3.1.2",
137
137
  "vue": "^3.5.13",
138
138
  "zod": "^3.24.3"
139
139
  },