silgi 0.8.40 → 0.8.42

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.40";
1
+ const version = "0.8.42";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
@@ -1,4 +1,5 @@
1
1
  import { defineCommand } from 'citty';
2
+ import consola, { consola as consola$1 } from 'consola';
2
3
  import { join, resolve, isAbsolute, relative, dirname, basename, extname } from 'pathe';
3
4
  import { devDependencies, version } from 'silgi/meta';
4
5
  import { runtimeDir } from 'silgi/runtime/meta';
@@ -8,7 +9,6 @@ import { resolvePath, parseNodeModulePath, lookupNodeModuleSubpath, resolve as r
8
9
  import { resolveAlias } from 'pathe/utils';
9
10
  import { relativeWithDot, isDirectory, writeFile, resolveAlias as resolveAlias$1, resolvePath as resolvePath$1, normalizeTemplate, useLogger, addTemplate } from 'silgi/kit';
10
11
  import { toExports, scanExports, createUnimport } from 'unimport';
11
- import consola, { consola as consola$1 } from 'consola';
12
12
  import { createJiti } from 'dev-jiti';
13
13
  import { readPackageJSON } from 'pkg-types';
14
14
  import { hash } from 'ohash';
@@ -273,7 +273,13 @@ async function readCoreFile(silgi) {
273
273
  path
274
274
  };
275
275
  } catch (error) {
276
- consola.error("Failed to read core.ts file:", error);
276
+ if (silgi.options.debug) {
277
+ console.error("Failed to read core.ts file:", error);
278
+ } else {
279
+ if (error instanceof Error) {
280
+ consola.error(error.message);
281
+ }
282
+ }
277
283
  return {
278
284
  context,
279
285
  object: {
@@ -1807,6 +1813,7 @@ const prepare = defineCommand({
1807
1813
  }
1808
1814
  await generate();
1809
1815
  await generate();
1816
+ consola.success("Prepare completed");
1810
1817
  }
1811
1818
  });
1812
1819
 
@@ -1,4 +1,4 @@
1
- const version = "0.8.40";
1
+ const version = "0.8.42";
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.40";
1
+ const version = "0.8.42";
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.40",
4
+ "version": "0.8.42",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {