silgi 0.8.30 → 0.8.31
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 +1 -1
- package/dist/cli/prepare.mjs +9 -4
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -35,6 +35,14 @@ import 'std-env';
|
|
|
35
35
|
import 'consola/utils';
|
|
36
36
|
import 'escape-string-regexp';
|
|
37
37
|
|
|
38
|
+
async function emptyFramework(silgi) {
|
|
39
|
+
if (silgi.options.preset === "npm-package" || !silgi.options.preset) {
|
|
40
|
+
silgi.hook("after:prepare:schema.ts", (data) => {
|
|
41
|
+
data.unshift("type FrameworkContextExtends = {}");
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
async function h3Framework(silgi, skip = false) {
|
|
39
47
|
if (silgi.options.preset !== "h3" && skip === false)
|
|
40
48
|
return;
|
|
@@ -128,7 +136,7 @@ async function nuxtFramework(silgi, skip = false) {
|
|
|
128
136
|
await nitroFramework(silgi, true);
|
|
129
137
|
}
|
|
130
138
|
|
|
131
|
-
const frameworkSetup = [h3Framework, nitroFramework, nuxtFramework];
|
|
139
|
+
const frameworkSetup = [emptyFramework, h3Framework, nitroFramework, nuxtFramework];
|
|
132
140
|
|
|
133
141
|
async function prepare$1(_silgi) {
|
|
134
142
|
}
|
|
@@ -1161,9 +1169,6 @@ function topologicalSort(graphData) {
|
|
|
1161
1169
|
logger$1.debug(`Adding initial module: ${node} (no dependencies)`);
|
|
1162
1170
|
}
|
|
1163
1171
|
}
|
|
1164
|
-
if (queue.length === 0) {
|
|
1165
|
-
logger$1.warn("No modules without dependencies found - possible circular reference");
|
|
1166
|
-
}
|
|
1167
1172
|
while (queue.length > 0) {
|
|
1168
1173
|
const node = queue.shift();
|
|
1169
1174
|
order.push(node);
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED