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.
- package/dist/_chunks/index.mjs +1 -1
- package/dist/cli/prepare.mjs +9 -2
- 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
|
@@ -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
|
-
|
|
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
|
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED