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.
@@ -1,4 +1,4 @@
1
- const version = "0.8.30";
1
+ const version = "0.8.31";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
@@ -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);
@@ -1,4 +1,4 @@
1
- const version = "0.8.30";
1
+ const version = "0.8.31";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
@@ -1,4 +1,4 @@
1
- const version = "0.8.30";
1
+ const version = "0.8.31";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.8.30",
4
+ "version": "0.8.31",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {