houdini 1.2.23-next.0 → 1.2.23
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/build/cmd-cjs/index.js +5 -5
- package/build/cmd-esm/index.js +5 -5
- package/build/lib/router/server.d.ts +2 -2
- package/build/lib/types.d.ts +1 -1
- package/build/lib-cjs/index.js +5 -5
- package/build/lib-esm/index.js +5 -5
- package/build/runtime/router/server.d.ts +1 -1
- package/build/runtime-cjs/router/match.js +1 -1
- package/build/runtime-cjs/router/server.d.ts +1 -1
- package/build/runtime-esm/router/match.js +1 -1
- package/build/runtime-esm/router/server.d.ts +1 -1
- package/build/test-cjs/index.js +1 -1
- package/build/test-esm/index.js +1 -1
- package/build/vite-cjs/index.js +13 -13
- package/build/vite-esm/index.js +13 -13
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -67967,7 +67967,7 @@ var Config = class {
|
|
|
67967
67967
|
return join2(this.definitionsDirectory, "schema.graphql");
|
|
67968
67968
|
}
|
|
67969
67969
|
get routerBuildDirectory() {
|
|
67970
|
-
return join2(this.projectRoot, "dist");
|
|
67970
|
+
return join2(this.projectRoot, "dist", "assets");
|
|
67971
67971
|
}
|
|
67972
67972
|
get definitionsDocumentsPath() {
|
|
67973
67973
|
return join2(this.definitionsDirectory, "documents.gql");
|
|
@@ -69070,7 +69070,7 @@ var graphql5 = __toESM(require("graphql"), 1);
|
|
|
69070
69070
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
69071
69071
|
async function buildLocalSchema(config2) {
|
|
69072
69072
|
const { build } = await import("vite");
|
|
69073
|
-
process.env.
|
|
69073
|
+
process.env.HOUDINI_SECONDARY_BUILD = "true";
|
|
69074
69074
|
await build({
|
|
69075
69075
|
logLevel: "silent",
|
|
69076
69076
|
build: {
|
|
@@ -69092,7 +69092,7 @@ async function buildLocalSchema(config2) {
|
|
|
69092
69092
|
}
|
|
69093
69093
|
}
|
|
69094
69094
|
});
|
|
69095
|
-
process.env.
|
|
69095
|
+
process.env.HOUDINI_SECONDARY_BUILD = "false";
|
|
69096
69096
|
}
|
|
69097
69097
|
async function loadLocalSchema(config2) {
|
|
69098
69098
|
await buildLocalSchema(config2);
|
|
@@ -76176,12 +76176,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
76176
76176
|
}
|
|
76177
76177
|
packageJSON2.devDependencies = {
|
|
76178
76178
|
...packageJSON2.devDependencies,
|
|
76179
|
-
houdini: "^1.2.23
|
|
76179
|
+
houdini: "^1.2.23"
|
|
76180
76180
|
};
|
|
76181
76181
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
76182
76182
|
packageJSON2.devDependencies = {
|
|
76183
76183
|
...packageJSON2.devDependencies,
|
|
76184
|
-
"houdini-svelte": "^1.2.23
|
|
76184
|
+
"houdini-svelte": "^1.2.23"
|
|
76185
76185
|
};
|
|
76186
76186
|
} else {
|
|
76187
76187
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -67972,7 +67972,7 @@ var Config = class {
|
|
|
67972
67972
|
return join2(this.definitionsDirectory, "schema.graphql");
|
|
67973
67973
|
}
|
|
67974
67974
|
get routerBuildDirectory() {
|
|
67975
|
-
return join2(this.projectRoot, "dist");
|
|
67975
|
+
return join2(this.projectRoot, "dist", "assets");
|
|
67976
67976
|
}
|
|
67977
67977
|
get definitionsDocumentsPath() {
|
|
67978
67978
|
return join2(this.definitionsDirectory, "documents.gql");
|
|
@@ -69075,7 +69075,7 @@ import * as graphql5 from "graphql";
|
|
|
69075
69075
|
import path2 from "node:path";
|
|
69076
69076
|
async function buildLocalSchema(config2) {
|
|
69077
69077
|
const { build } = await import("vite");
|
|
69078
|
-
process.env.
|
|
69078
|
+
process.env.HOUDINI_SECONDARY_BUILD = "true";
|
|
69079
69079
|
await build({
|
|
69080
69080
|
logLevel: "silent",
|
|
69081
69081
|
build: {
|
|
@@ -69097,7 +69097,7 @@ async function buildLocalSchema(config2) {
|
|
|
69097
69097
|
}
|
|
69098
69098
|
}
|
|
69099
69099
|
});
|
|
69100
|
-
process.env.
|
|
69100
|
+
process.env.HOUDINI_SECONDARY_BUILD = "false";
|
|
69101
69101
|
}
|
|
69102
69102
|
async function loadLocalSchema(config2) {
|
|
69103
69103
|
await buildLocalSchema(config2);
|
|
@@ -76181,12 +76181,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
76181
76181
|
}
|
|
76182
76182
|
packageJSON2.devDependencies = {
|
|
76183
76183
|
...packageJSON2.devDependencies,
|
|
76184
|
-
houdini: "^1.2.23
|
|
76184
|
+
houdini: "^1.2.23"
|
|
76185
76185
|
};
|
|
76186
76186
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
76187
76187
|
packageJSON2.devDependencies = {
|
|
76188
76188
|
...packageJSON2.devDependencies,
|
|
76189
|
-
"houdini-svelte": "^1.2.23
|
|
76189
|
+
"houdini-svelte": "^1.2.23"
|
|
76190
76190
|
};
|
|
76191
76191
|
} else {
|
|
76192
76192
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as graphql from 'graphql';
|
|
2
2
|
import type { Config } from '../config';
|
|
3
|
-
import { ConfigFile } from '../types';
|
|
4
|
-
export declare function isSecondaryBuild(): boolean;
|
|
3
|
+
import { type ConfigFile } from '../types';
|
|
4
|
+
export declare function isSecondaryBuild(): boolean | "" | undefined;
|
|
5
5
|
export declare function internalRoutes(config: ConfigFile): string[];
|
|
6
6
|
export declare function buildLocalSchema(config: Config): Promise<void>;
|
|
7
7
|
export declare function loadLocalSchema(config: Config): Promise<graphql.GraphQLSchema>;
|
package/build/lib/types.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ export type PluginHooks = {
|
|
|
253
253
|
houdiniConfig: Config;
|
|
254
254
|
}) => void;
|
|
255
255
|
buildEnd?: (this: PluginContext, error?: Error, houdiniConfig?: Config) => void | Promise<void>;
|
|
256
|
-
closeBundle?: (this: PluginContext) => void | Promise<void>;
|
|
256
|
+
closeBundle?: (this: PluginContext, config: Config) => void | Promise<void>;
|
|
257
257
|
configResolved?: ObjectHook<(this: void, config: ResolvedConfig) => void | Promise<void>>;
|
|
258
258
|
options?: (this: MinimalPluginContext, options: InputOptions & {
|
|
259
259
|
houdiniConfig: Config;
|
package/build/lib-cjs/index.js
CHANGED
|
@@ -67121,7 +67121,7 @@ var Config = class {
|
|
|
67121
67121
|
return join2(this.definitionsDirectory, "schema.graphql");
|
|
67122
67122
|
}
|
|
67123
67123
|
get routerBuildDirectory() {
|
|
67124
|
-
return join2(this.projectRoot, "dist");
|
|
67124
|
+
return join2(this.projectRoot, "dist", "assets");
|
|
67125
67125
|
}
|
|
67126
67126
|
get definitionsDocumentsPath() {
|
|
67127
67127
|
return join2(this.definitionsDirectory, "documents.gql");
|
|
@@ -68149,7 +68149,7 @@ function exec(match, params) {
|
|
|
68149
68149
|
const result = {};
|
|
68150
68150
|
const values = match.slice(1);
|
|
68151
68151
|
let buffered = "";
|
|
68152
|
-
for (let i2 = 0; i2 < params.length; i2 += 1) {
|
|
68152
|
+
for (let i2 = 0; i2 < (params || []).length; i2 += 1) {
|
|
68153
68153
|
const param = params[i2];
|
|
68154
68154
|
let value = values[i2];
|
|
68155
68155
|
if (param.chained && param.rest && buffered) {
|
|
@@ -68706,7 +68706,7 @@ async function extractQueries(source) {
|
|
|
68706
68706
|
// src/lib/router/server.ts
|
|
68707
68707
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
68708
68708
|
function isSecondaryBuild() {
|
|
68709
|
-
return process.env.
|
|
68709
|
+
return process.env.HOUDINI_SECONDARY_BUILD && process.env.HOUDINI_SECONDARY_BUILD !== "false";
|
|
68710
68710
|
}
|
|
68711
68711
|
function internalRoutes(config2) {
|
|
68712
68712
|
const routes = [localApiEndpoint(config2)];
|
|
@@ -68717,7 +68717,7 @@ function internalRoutes(config2) {
|
|
|
68717
68717
|
}
|
|
68718
68718
|
async function buildLocalSchema(config2) {
|
|
68719
68719
|
const { build } = await import("vite");
|
|
68720
|
-
process.env.
|
|
68720
|
+
process.env.HOUDINI_SECONDARY_BUILD = "true";
|
|
68721
68721
|
await build({
|
|
68722
68722
|
logLevel: "silent",
|
|
68723
68723
|
build: {
|
|
@@ -68739,7 +68739,7 @@ async function buildLocalSchema(config2) {
|
|
|
68739
68739
|
}
|
|
68740
68740
|
}
|
|
68741
68741
|
});
|
|
68742
|
-
process.env.
|
|
68742
|
+
process.env.HOUDINI_SECONDARY_BUILD = "false";
|
|
68743
68743
|
}
|
|
68744
68744
|
async function loadLocalSchema(config2) {
|
|
68745
68745
|
await buildLocalSchema(config2);
|
package/build/lib-esm/index.js
CHANGED
|
@@ -67043,7 +67043,7 @@ var Config = class {
|
|
|
67043
67043
|
return join2(this.definitionsDirectory, "schema.graphql");
|
|
67044
67044
|
}
|
|
67045
67045
|
get routerBuildDirectory() {
|
|
67046
|
-
return join2(this.projectRoot, "dist");
|
|
67046
|
+
return join2(this.projectRoot, "dist", "assets");
|
|
67047
67047
|
}
|
|
67048
67048
|
get definitionsDocumentsPath() {
|
|
67049
67049
|
return join2(this.definitionsDirectory, "documents.gql");
|
|
@@ -68071,7 +68071,7 @@ function exec(match, params) {
|
|
|
68071
68071
|
const result = {};
|
|
68072
68072
|
const values = match.slice(1);
|
|
68073
68073
|
let buffered = "";
|
|
68074
|
-
for (let i2 = 0; i2 < params.length; i2 += 1) {
|
|
68074
|
+
for (let i2 = 0; i2 < (params || []).length; i2 += 1) {
|
|
68075
68075
|
const param = params[i2];
|
|
68076
68076
|
let value = values[i2];
|
|
68077
68077
|
if (param.chained && param.rest && buffered) {
|
|
@@ -68628,7 +68628,7 @@ async function extractQueries(source) {
|
|
|
68628
68628
|
// src/lib/router/server.ts
|
|
68629
68629
|
import path2 from "node:path";
|
|
68630
68630
|
function isSecondaryBuild() {
|
|
68631
|
-
return process.env.
|
|
68631
|
+
return process.env.HOUDINI_SECONDARY_BUILD && process.env.HOUDINI_SECONDARY_BUILD !== "false";
|
|
68632
68632
|
}
|
|
68633
68633
|
function internalRoutes(config2) {
|
|
68634
68634
|
const routes = [localApiEndpoint(config2)];
|
|
@@ -68639,7 +68639,7 @@ function internalRoutes(config2) {
|
|
|
68639
68639
|
}
|
|
68640
68640
|
async function buildLocalSchema(config2) {
|
|
68641
68641
|
const { build } = await import("vite");
|
|
68642
|
-
process.env.
|
|
68642
|
+
process.env.HOUDINI_SECONDARY_BUILD = "true";
|
|
68643
68643
|
await build({
|
|
68644
68644
|
logLevel: "silent",
|
|
68645
68645
|
build: {
|
|
@@ -68661,7 +68661,7 @@ async function buildLocalSchema(config2) {
|
|
|
68661
68661
|
}
|
|
68662
68662
|
}
|
|
68663
68663
|
});
|
|
68664
|
-
process.env.
|
|
68664
|
+
process.env.HOUDINI_SECONDARY_BUILD = "false";
|
|
68665
68665
|
}
|
|
68666
68666
|
async function loadLocalSchema(config2) {
|
|
68667
68667
|
await buildLocalSchema(config2);
|
|
@@ -14,7 +14,7 @@ export declare function _serverHandler<ComponentType = unknown>({ schema, yoga,
|
|
|
14
14
|
on_render: (args: {
|
|
15
15
|
url: string;
|
|
16
16
|
match: RouterPageManifest<ComponentType> | null;
|
|
17
|
-
manifest: RouterManifest<
|
|
17
|
+
manifest: RouterManifest<unknown>;
|
|
18
18
|
session: App.Session;
|
|
19
19
|
}) => Response | Promise<Response | undefined> | undefined;
|
|
20
20
|
} & Omit<YogaServerOptions, 'schema'>): (request: Request) => Promise<Response>;
|
|
@@ -119,7 +119,7 @@ function exec(match, params) {
|
|
|
119
119
|
const result = {};
|
|
120
120
|
const values = match.slice(1);
|
|
121
121
|
let buffered = "";
|
|
122
|
-
for (let i = 0; i < params.length; i += 1) {
|
|
122
|
+
for (let i = 0; i < (params || []).length; i += 1) {
|
|
123
123
|
const param = params[i];
|
|
124
124
|
let value = values[i];
|
|
125
125
|
if (param.chained && param.rest && buffered) {
|
|
@@ -14,7 +14,7 @@ export declare function _serverHandler<ComponentType = unknown>({ schema, yoga,
|
|
|
14
14
|
on_render: (args: {
|
|
15
15
|
url: string;
|
|
16
16
|
match: RouterPageManifest<ComponentType> | null;
|
|
17
|
-
manifest: RouterManifest<
|
|
17
|
+
manifest: RouterManifest<unknown>;
|
|
18
18
|
session: App.Session;
|
|
19
19
|
}) => Response | Promise<Response | undefined> | undefined;
|
|
20
20
|
} & Omit<YogaServerOptions, 'schema'>): (request: Request) => Promise<Response>;
|
|
@@ -93,7 +93,7 @@ function exec(match, params) {
|
|
|
93
93
|
const result = {};
|
|
94
94
|
const values = match.slice(1);
|
|
95
95
|
let buffered = "";
|
|
96
|
-
for (let i = 0; i < params.length; i += 1) {
|
|
96
|
+
for (let i = 0; i < (params || []).length; i += 1) {
|
|
97
97
|
const param = params[i];
|
|
98
98
|
let value = values[i];
|
|
99
99
|
if (param.chained && param.rest && buffered) {
|
|
@@ -14,7 +14,7 @@ export declare function _serverHandler<ComponentType = unknown>({ schema, yoga,
|
|
|
14
14
|
on_render: (args: {
|
|
15
15
|
url: string;
|
|
16
16
|
match: RouterPageManifest<ComponentType> | null;
|
|
17
|
-
manifest: RouterManifest<
|
|
17
|
+
manifest: RouterManifest<unknown>;
|
|
18
18
|
session: App.Session;
|
|
19
19
|
}) => Response | Promise<Response | undefined> | undefined;
|
|
20
20
|
} & Omit<YogaServerOptions, 'schema'>): (request: Request) => Promise<Response>;
|
package/build/test-cjs/index.js
CHANGED
|
@@ -57351,7 +57351,7 @@ var Config = class {
|
|
|
57351
57351
|
return join(this.definitionsDirectory, "schema.graphql");
|
|
57352
57352
|
}
|
|
57353
57353
|
get routerBuildDirectory() {
|
|
57354
|
-
return join(this.projectRoot, "dist");
|
|
57354
|
+
return join(this.projectRoot, "dist", "assets");
|
|
57355
57355
|
}
|
|
57356
57356
|
get definitionsDocumentsPath() {
|
|
57357
57357
|
return join(this.definitionsDirectory, "documents.gql");
|
package/build/test-esm/index.js
CHANGED
|
@@ -57347,7 +57347,7 @@ var Config = class {
|
|
|
57347
57347
|
return join(this.definitionsDirectory, "schema.graphql");
|
|
57348
57348
|
}
|
|
57349
57349
|
get routerBuildDirectory() {
|
|
57350
|
-
return join(this.projectRoot, "dist");
|
|
57350
|
+
return join(this.projectRoot, "dist", "assets");
|
|
57351
57351
|
}
|
|
57352
57352
|
get definitionsDocumentsPath() {
|
|
57353
57353
|
return join(this.definitionsDirectory, "documents.gql");
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -69747,7 +69747,7 @@ var Config = class {
|
|
|
69747
69747
|
return join2(this.definitionsDirectory, "schema.graphql");
|
|
69748
69748
|
}
|
|
69749
69749
|
get routerBuildDirectory() {
|
|
69750
|
-
return join2(this.projectRoot, "dist");
|
|
69750
|
+
return join2(this.projectRoot, "dist", "assets");
|
|
69751
69751
|
}
|
|
69752
69752
|
get definitionsDocumentsPath() {
|
|
69753
69753
|
return join2(this.definitionsDirectory, "documents.gql");
|
|
@@ -71138,11 +71138,11 @@ async function extractQueries(source) {
|
|
|
71138
71138
|
// src/lib/router/server.ts
|
|
71139
71139
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
71140
71140
|
function isSecondaryBuild() {
|
|
71141
|
-
return process.env.
|
|
71141
|
+
return process.env.HOUDINI_SECONDARY_BUILD && process.env.HOUDINI_SECONDARY_BUILD !== "false";
|
|
71142
71142
|
}
|
|
71143
71143
|
async function buildLocalSchema(config4) {
|
|
71144
71144
|
const { build } = await import("vite");
|
|
71145
|
-
process.env.
|
|
71145
|
+
process.env.HOUDINI_SECONDARY_BUILD = "true";
|
|
71146
71146
|
await build({
|
|
71147
71147
|
logLevel: "silent",
|
|
71148
71148
|
build: {
|
|
@@ -71164,7 +71164,7 @@ async function buildLocalSchema(config4) {
|
|
|
71164
71164
|
}
|
|
71165
71165
|
}
|
|
71166
71166
|
});
|
|
71167
|
-
process.env.
|
|
71167
|
+
process.env.HOUDINI_SECONDARY_BUILD = "false";
|
|
71168
71168
|
}
|
|
71169
71169
|
async function loadLocalSchema(config4) {
|
|
71170
71170
|
await buildLocalSchema(config4);
|
|
@@ -77262,16 +77262,16 @@ function Plugin(opts = {}) {
|
|
|
77262
77262
|
}
|
|
77263
77263
|
},
|
|
77264
77264
|
async closeBundle() {
|
|
77265
|
-
if (isSecondaryBuild() || viteEnv.mode !== "production") {
|
|
77266
|
-
return;
|
|
77267
|
-
}
|
|
77268
77265
|
for (const plugin2 of config3.plugins) {
|
|
77269
77266
|
if (typeof plugin2.vite?.closeBundle !== "function") {
|
|
77270
77267
|
continue;
|
|
77271
77268
|
}
|
|
77272
|
-
await plugin2.vite.closeBundle.call(this);
|
|
77269
|
+
await plugin2.vite.closeBundle.call(this, config3);
|
|
77270
|
+
}
|
|
77271
|
+
if (isSecondaryBuild() || viteEnv.mode !== "production" || devServer) {
|
|
77272
|
+
return;
|
|
77273
77273
|
}
|
|
77274
|
-
if (!opts.adapter
|
|
77274
|
+
if (!opts.adapter) {
|
|
77275
77275
|
return;
|
|
77276
77276
|
}
|
|
77277
77277
|
console.log("\u{1F3A9} Generating Deployment Assets...");
|
|
@@ -77291,7 +77291,7 @@ function Plugin(opts = {}) {
|
|
|
77291
77291
|
publicBase: viteConfig.base,
|
|
77292
77292
|
outDir: config3.routerBuildDirectory,
|
|
77293
77293
|
manifest,
|
|
77294
|
-
adapterPath: "
|
|
77294
|
+
adapterPath: "./assets/ssr/entries/adapter"
|
|
77295
77295
|
});
|
|
77296
77296
|
if (fs_exports.existsSync(path_exports.join(config3.projectRoot, "public"))) {
|
|
77297
77297
|
await fs_exports.recursiveCopy(
|
|
@@ -77310,8 +77310,8 @@ function Plugin(opts = {}) {
|
|
|
77310
77310
|
houdiniConfig: config3
|
|
77311
77311
|
});
|
|
77312
77312
|
}
|
|
77313
|
-
if (
|
|
77314
|
-
if (config3.localSchema) {
|
|
77313
|
+
if (!devServer && !isSecondaryBuild()) {
|
|
77314
|
+
if (config3.localSchema && !config3.schema) {
|
|
77315
77315
|
config3.schema = await loadLocalSchema(config3);
|
|
77316
77316
|
}
|
|
77317
77317
|
try {
|
|
@@ -77347,7 +77347,7 @@ function Plugin(opts = {}) {
|
|
|
77347
77347
|
houdiniConfig: config3
|
|
77348
77348
|
});
|
|
77349
77349
|
}
|
|
77350
|
-
if (config3.localSchema) {
|
|
77350
|
+
if (config3.localSchema && !config3.schema) {
|
|
77351
77351
|
config3.schema = await loadLocalSchema(config3);
|
|
77352
77352
|
}
|
|
77353
77353
|
process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
|
package/build/vite-esm/index.js
CHANGED
|
@@ -69742,7 +69742,7 @@ var Config = class {
|
|
|
69742
69742
|
return join2(this.definitionsDirectory, "schema.graphql");
|
|
69743
69743
|
}
|
|
69744
69744
|
get routerBuildDirectory() {
|
|
69745
|
-
return join2(this.projectRoot, "dist");
|
|
69745
|
+
return join2(this.projectRoot, "dist", "assets");
|
|
69746
69746
|
}
|
|
69747
69747
|
get definitionsDocumentsPath() {
|
|
69748
69748
|
return join2(this.definitionsDirectory, "documents.gql");
|
|
@@ -71133,11 +71133,11 @@ async function extractQueries(source) {
|
|
|
71133
71133
|
// src/lib/router/server.ts
|
|
71134
71134
|
import path2 from "node:path";
|
|
71135
71135
|
function isSecondaryBuild() {
|
|
71136
|
-
return process.env.
|
|
71136
|
+
return process.env.HOUDINI_SECONDARY_BUILD && process.env.HOUDINI_SECONDARY_BUILD !== "false";
|
|
71137
71137
|
}
|
|
71138
71138
|
async function buildLocalSchema(config4) {
|
|
71139
71139
|
const { build } = await import("vite");
|
|
71140
|
-
process.env.
|
|
71140
|
+
process.env.HOUDINI_SECONDARY_BUILD = "true";
|
|
71141
71141
|
await build({
|
|
71142
71142
|
logLevel: "silent",
|
|
71143
71143
|
build: {
|
|
@@ -71159,7 +71159,7 @@ async function buildLocalSchema(config4) {
|
|
|
71159
71159
|
}
|
|
71160
71160
|
}
|
|
71161
71161
|
});
|
|
71162
|
-
process.env.
|
|
71162
|
+
process.env.HOUDINI_SECONDARY_BUILD = "false";
|
|
71163
71163
|
}
|
|
71164
71164
|
async function loadLocalSchema(config4) {
|
|
71165
71165
|
await buildLocalSchema(config4);
|
|
@@ -77257,16 +77257,16 @@ function Plugin(opts = {}) {
|
|
|
77257
77257
|
}
|
|
77258
77258
|
},
|
|
77259
77259
|
async closeBundle() {
|
|
77260
|
-
if (isSecondaryBuild() || viteEnv.mode !== "production") {
|
|
77261
|
-
return;
|
|
77262
|
-
}
|
|
77263
77260
|
for (const plugin2 of config3.plugins) {
|
|
77264
77261
|
if (typeof plugin2.vite?.closeBundle !== "function") {
|
|
77265
77262
|
continue;
|
|
77266
77263
|
}
|
|
77267
|
-
await plugin2.vite.closeBundle.call(this);
|
|
77264
|
+
await plugin2.vite.closeBundle.call(this, config3);
|
|
77265
|
+
}
|
|
77266
|
+
if (isSecondaryBuild() || viteEnv.mode !== "production" || devServer) {
|
|
77267
|
+
return;
|
|
77268
77268
|
}
|
|
77269
|
-
if (!opts.adapter
|
|
77269
|
+
if (!opts.adapter) {
|
|
77270
77270
|
return;
|
|
77271
77271
|
}
|
|
77272
77272
|
console.log("\u{1F3A9} Generating Deployment Assets...");
|
|
@@ -77286,7 +77286,7 @@ function Plugin(opts = {}) {
|
|
|
77286
77286
|
publicBase: viteConfig.base,
|
|
77287
77287
|
outDir: config3.routerBuildDirectory,
|
|
77288
77288
|
manifest,
|
|
77289
|
-
adapterPath: "
|
|
77289
|
+
adapterPath: "./assets/ssr/entries/adapter"
|
|
77290
77290
|
});
|
|
77291
77291
|
if (fs_exports.existsSync(path_exports.join(config3.projectRoot, "public"))) {
|
|
77292
77292
|
await fs_exports.recursiveCopy(
|
|
@@ -77305,8 +77305,8 @@ function Plugin(opts = {}) {
|
|
|
77305
77305
|
houdiniConfig: config3
|
|
77306
77306
|
});
|
|
77307
77307
|
}
|
|
77308
|
-
if (
|
|
77309
|
-
if (config3.localSchema) {
|
|
77308
|
+
if (!devServer && !isSecondaryBuild()) {
|
|
77309
|
+
if (config3.localSchema && !config3.schema) {
|
|
77310
77310
|
config3.schema = await loadLocalSchema(config3);
|
|
77311
77311
|
}
|
|
77312
77312
|
try {
|
|
@@ -77342,7 +77342,7 @@ function Plugin(opts = {}) {
|
|
|
77342
77342
|
houdiniConfig: config3
|
|
77343
77343
|
});
|
|
77344
77344
|
}
|
|
77345
|
-
if (config3.localSchema) {
|
|
77345
|
+
if (config3.localSchema && !config3.schema) {
|
|
77346
77346
|
config3.schema = await loadLocalSchema(config3);
|
|
77347
77347
|
}
|
|
77348
77348
|
process.env.HOUDINI_PORT = String(server.config.server.port ?? 5173);
|