@lovable.dev/vite-tanstack-config 2.0.0-rc.1 → 2.0.0-rc.2

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/index.cjs CHANGED
@@ -302,7 +302,12 @@ function defineConfig(configOrOptions = {}) {
302
302
  const { nitro } = await import("nitro/vite");
303
303
  const userNitroOpts = typeof options.nitro === "object" && options.nitro ? options.nitro : {};
304
304
  const preset = userNitroOpts.preset ?? process.env.NITRO_PRESET ?? "cloudflare-module";
305
- const output = { dir: "dist", ...userNitroOpts.output ?? {} };
305
+ const output = {
306
+ dir: "dist",
307
+ serverDir: "dist/server",
308
+ publicDir: "dist/client",
309
+ ...userNitroOpts.output ?? {}
310
+ };
306
311
  internalPlugins.push(nitro({ ...userNitroOpts, preset, output }));
307
312
  } catch {
308
313
  }
package/dist/index.d.cts CHANGED
@@ -18,6 +18,8 @@ interface LovableViteTanstackOptions {
18
18
  preset?: string;
19
19
  output?: {
20
20
  dir?: string;
21
+ publicDir?: string;
22
+ serverDir?: string;
21
23
  };
22
24
  } | false;
23
25
  /** Options forwarded to tanstackStart(). */
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ interface LovableViteTanstackOptions {
18
18
  preset?: string;
19
19
  output?: {
20
20
  dir?: string;
21
+ publicDir?: string;
22
+ serverDir?: string;
21
23
  };
22
24
  } | false;
23
25
  /** Options forwarded to tanstackStart(). */
package/dist/index.js CHANGED
@@ -268,7 +268,12 @@ function defineConfig(configOrOptions = {}) {
268
268
  const { nitro } = await import("nitro/vite");
269
269
  const userNitroOpts = typeof options.nitro === "object" && options.nitro ? options.nitro : {};
270
270
  const preset = userNitroOpts.preset ?? process.env.NITRO_PRESET ?? "cloudflare-module";
271
- const output = { dir: "dist", ...userNitroOpts.output ?? {} };
271
+ const output = {
272
+ dir: "dist",
273
+ serverDir: "dist/server",
274
+ publicDir: "dist/client",
275
+ ...userNitroOpts.output ?? {}
276
+ };
272
277
  internalPlugins.push(nitro({ ...userNitroOpts, preset, output }));
273
278
  } catch {
274
279
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/vite-tanstack-config",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "Vite config wrapper for Lovable TanStack Start projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",