silgi 0.9.3 → 0.9.4
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 +0 -15
- 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
|
@@ -9,7 +9,6 @@ import { resolveAlias } from 'pathe/utils';
|
|
|
9
9
|
import { relativeWithDot, isDirectory, writeFile, resolveAlias as resolveAlias$1, resolvePath as resolvePath$1, normalizeTemplate, useLogger, addTemplate } from 'silgi/kit';
|
|
10
10
|
import { runtimeDir } from 'silgi/runtime/meta';
|
|
11
11
|
import { toExports, scanExports, createUnimport } from 'unimport';
|
|
12
|
-
import { execSync } from 'node:child_process';
|
|
13
12
|
import { createJiti } from 'dev-jiti';
|
|
14
13
|
import { readPackageJSON } from 'pkg-types';
|
|
15
14
|
import { hash } from 'ohash';
|
|
@@ -175,20 +174,6 @@ async function readCoreFile(silgi) {
|
|
|
175
174
|
console.error("Failed to read core.ts file:", error);
|
|
176
175
|
} else {
|
|
177
176
|
if (error instanceof Error) {
|
|
178
|
-
if (error.message.includes("Cannot find module")) {
|
|
179
|
-
const isInstall = await consola.withTag("silgi").prompt("The necessary files for the modules need to be added. You must allow this.", {
|
|
180
|
-
type: "confirm"
|
|
181
|
-
});
|
|
182
|
-
if (isInstall) {
|
|
183
|
-
execSync('na silgi run --tag="init"', { stdio: "inherit" });
|
|
184
|
-
const isSetup = await consola.withTag("silgi").prompt("We need the sample data that the modules need. You must allow this.", {
|
|
185
|
-
type: "confirm"
|
|
186
|
-
});
|
|
187
|
-
if (isSetup) {
|
|
188
|
-
execSync('na silgi run --tag="setup"', { stdio: "inherit" });
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
177
|
consola.withTag("silgi").error(error.message);
|
|
193
178
|
}
|
|
194
179
|
}
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED