silgi 0.29.2 → 0.29.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/cli/dev.mjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/install.mjs +1 -1
- package/dist/cli/prepare.mjs +6 -6
- package/package.json +1 -1
package/dist/cli/dev.mjs
CHANGED
|
@@ -71,7 +71,7 @@ const dev = defineCommand({
|
|
|
71
71
|
},
|
|
72
72
|
async run() {
|
|
73
73
|
await runCommand(prepare, {
|
|
74
|
-
rawArgs: ["--
|
|
74
|
+
rawArgs: ["--command_type", "dev", "--dev", "true"]
|
|
75
75
|
});
|
|
76
76
|
const silgi = useSilgiCLI();
|
|
77
77
|
silgi.options.watchOptions.ignored ??= [];
|
package/dist/cli/index.mjs
CHANGED
package/dist/cli/install.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -114,10 +114,14 @@ const run = defineCommand({
|
|
|
114
114
|
},
|
|
115
115
|
async run({ args }) {
|
|
116
116
|
const data = args.active ? await runCommand(prepare, {
|
|
117
|
-
rawArgs: ["--
|
|
117
|
+
rawArgs: ["--command_type", "run"]
|
|
118
118
|
}) : void 0;
|
|
119
119
|
const silgi = useSilgiCLI$1();
|
|
120
120
|
const commands = await scanCommands();
|
|
121
|
+
globalThis.__nitro__ = globalThis.__nitro__ || {};
|
|
122
|
+
globalThis.__nitro__.useRuntimeConfig = function() {
|
|
123
|
+
return data?.result?.silgi?.options?.runtimeConfig || {};
|
|
124
|
+
};
|
|
121
125
|
if (!data?.result?.silgi && args.active) {
|
|
122
126
|
consola.error("Silgi not found");
|
|
123
127
|
return;
|
|
@@ -210,10 +214,6 @@ const prepare = defineCommand({
|
|
|
210
214
|
type: "string",
|
|
211
215
|
description: "The environment to use"
|
|
212
216
|
},
|
|
213
|
-
commands: {
|
|
214
|
-
type: "string",
|
|
215
|
-
description: "The commands to run"
|
|
216
|
-
},
|
|
217
217
|
command_type: {
|
|
218
218
|
type: "string",
|
|
219
219
|
description: "The command type to run"
|
|
@@ -230,7 +230,7 @@ const prepare = defineCommand({
|
|
|
230
230
|
activeEnvironment: args.env
|
|
231
231
|
});
|
|
232
232
|
await build(silgi);
|
|
233
|
-
if (
|
|
233
|
+
if (args.command_type !== "run") {
|
|
234
234
|
await runCommand(run, {
|
|
235
235
|
rawArgs: ["--tag", "init", "--active", "false"]
|
|
236
236
|
});
|