@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 +6 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -1
- package/package.json +1 -1
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 = {
|
|
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
package/dist/index.d.ts
CHANGED
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 = {
|
|
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