silgi 0.21.5 → 0.21.7

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.21.5";
1
+ const version = "0.21.7";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
package/dist/cli/dev.mjs CHANGED
@@ -96,10 +96,14 @@ const dev = defineCommand({
96
96
  }
97
97
  const startTime = performance.now();
98
98
  silgi.errors = [];
99
- await reloadScan(path, stats);
100
- await runCommand(prepare, {
101
- rawArgs: ["--commands", "run", "--dev", "true"]
102
- });
99
+ try {
100
+ await reloadScan(path, stats);
101
+ await runCommand(prepare, {
102
+ rawArgs: ["--commands", "run", "--dev", "true"]
103
+ });
104
+ } catch (error) {
105
+ consola.withTag("silgi").error(error);
106
+ }
103
107
  silgi.errors = [];
104
108
  const endTime = performance.now();
105
109
  const elapsedTime = Math.round(endTime - startTime);
@@ -1425,7 +1425,7 @@ async function scanFiles$1(silgi, watchFiles) {
1425
1425
  }
1426
1426
  options.importItems[path] ??= {
1427
1427
  import: [],
1428
- from: relativeWithDot(silgi.options.silgi.serverDir, path)
1428
+ from: relativeWithDot(silgi.options.build.typesDir, path)
1429
1429
  };
1430
1430
  options.importItems[path].import.push({
1431
1431
  name: `${exportName} as ${_name}`,
@@ -1,4 +1,4 @@
1
- const version = "0.21.5";
1
+ const version = "0.21.7";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.21.5";
1
+ const version = "0.21.7";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.21.5",
4
+ "version": "0.21.7",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {