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.
@@ -1,4 +1,4 @@
1
- const version = "0.20.3";
1
+ const version = "0.20.4";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -126,7 +126,7 @@ const run = defineCommand({
126
126
  consola.error("Silgi not found");
127
127
  return;
128
128
  }
129
- const silgi = data?.result?.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 global.__silgi_temp_obj;
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 {
@@ -1,4 +1,4 @@
1
- const version = "0.20.3";
1
+ const version = "0.20.4";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.20.3";
1
+ const version = "0.20.4";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.20.3",
4
+ "version": "0.20.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {