silgi 0.8.50 → 0.8.52

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.50";
1
+ const version = "0.8.52";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
@@ -279,11 +279,17 @@ async function readCoreFile(silgi) {
279
279
  } else {
280
280
  if (error instanceof Error) {
281
281
  if (error.message.includes("Cannot find module")) {
282
- const isInstall = await consola.withTag("silgi").prompt("pnpm silgi install", {
282
+ const isInstall = await consola.withTag("silgi").prompt("The necessary files for the modules need to be added. You must allow this.", {
283
283
  type: "confirm"
284
284
  });
285
285
  if (isInstall) {
286
- execSync("na silgi install", { stdio: "inherit" });
286
+ execSync('na silgi run --tag="init"', { stdio: "inherit" });
287
+ const isSetup = await consola.withTag("silgi").prompt("We need the sample data that the modules need. You must allow this.", {
288
+ type: "confirm"
289
+ });
290
+ if (isSetup) {
291
+ execSync('na silgi run --tag="setup"', { stdio: "inherit" });
292
+ }
287
293
  }
288
294
  }
289
295
  consola.withTag("silgi").error(error.message);
@@ -1,4 +1,4 @@
1
- const version = "0.8.50";
1
+ const version = "0.8.52";
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.50";
1
+ const version = "0.8.52";
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.50",
4
+ "version": "0.8.52",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {