silgi 0.20.3 → 0.20.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 +4 -5
- 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
|
@@ -126,7 +126,7 @@ const run = defineCommand({
|
|
|
126
126
|
consola.error("Silgi not found");
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
const silgi =
|
|
129
|
+
const silgi = globalThis.__silgi_temp_obj;
|
|
130
130
|
if (silgi) {
|
|
131
131
|
if (silgiCLICtx.tryUse()) {
|
|
132
132
|
silgiCLICtx.unset();
|
|
@@ -249,7 +249,6 @@ const run = defineCommand({
|
|
|
249
249
|
alias: silgiConfig.alias
|
|
250
250
|
});
|
|
251
251
|
let cleanHandler = cmd.handler.handler.replace(/\n/g, "");
|
|
252
|
-
global.__silgi_temp_obj = silgi;
|
|
253
252
|
cleanHandler = `import { silgiCLICtx } from 'silgi/core'
|
|
254
253
|
|
|
255
254
|
// Access from global scope
|
|
@@ -273,7 +272,7 @@ const run = defineCommand({
|
|
|
273
272
|
conditions: silgiConfig.conditions,
|
|
274
273
|
forceTranspile: true
|
|
275
274
|
});
|
|
276
|
-
delete
|
|
275
|
+
delete globalThis.__silgi_temp_obj;
|
|
277
276
|
}
|
|
278
277
|
}
|
|
279
278
|
}
|
|
@@ -331,10 +330,10 @@ const prepare = defineCommand({
|
|
|
331
330
|
await silgi.callHook("close", silgi);
|
|
332
331
|
consola$1.withTag("silgi").success("Prepare completed");
|
|
333
332
|
await close();
|
|
333
|
+
globalThis.__silgi_temp_obj = silgi;
|
|
334
334
|
if (!args.commands) {
|
|
335
335
|
await runCommand(run, {
|
|
336
|
-
rawArgs: ["--tag", "init", "--active", "false"]
|
|
337
|
-
data: { silgi }
|
|
336
|
+
rawArgs: ["--tag", "init", "--active", "false"]
|
|
338
337
|
});
|
|
339
338
|
}
|
|
340
339
|
return {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED