houdini-react 1.2.20-next.0 → 1.2.20-next.1

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.
@@ -78957,6 +78957,7 @@ function isSecondaryBuild() {
78957
78957
  async function buildLocalSchema(config2) {
78958
78958
  const { build } = await import("vite");
78959
78959
  process.env.HOUDINI_SCHEMA_BUILD = "true";
78960
+ console.log(import_node_path2.default.join(config2.localApiDir, "+schema"));
78960
78961
  await build({
78961
78962
  logLevel: "silent",
78962
78963
  build: {
@@ -78980,6 +78981,11 @@ async function buildLocalSchema(config2) {
78980
78981
  });
78981
78982
  process.env.HOUDINI_SCHEMA_BUILD = "false";
78982
78983
  }
78984
+ async function loadLocalSchema(config2) {
78985
+ await buildLocalSchema(config2);
78986
+ const { default: schema } = await import(import_node_path2.default.join(config2.rootDir, "temp", "assets", "schema.js"));
78987
+ return schema;
78988
+ }
78983
78989
 
78984
78990
  // src/plugin/index.ts
78985
78991
  var import_node_path3 = __toESM(require("node:path"));
@@ -79720,10 +79726,7 @@ if (window.__houdini__nav_caches__ && window.__houdini__nav_caches__.artifact_ca
79720
79726
  const project_manifest = await load_manifest({ config: server.houdiniConfig });
79721
79727
  let schema = null;
79722
79728
  if (project_manifest.local_schema) {
79723
- await buildLocalSchema(server.houdiniConfig);
79724
- schema = (await server.ssrLoadModule(
79725
- path_exports.join(server.houdiniConfig.rootDir, "temp", "assets", "schema.js")
79726
- )).default;
79729
+ schema = await loadLocalSchema(server.houdiniConfig);
79727
79730
  }
79728
79731
  const serverAdapter = (await server.ssrLoadModule(
79729
79732
  conventions_exports.server_adapter_path(server.houdiniConfig) + "?t=" + new Date().getTime()
@@ -78947,6 +78947,7 @@ function isSecondaryBuild() {
78947
78947
  async function buildLocalSchema(config2) {
78948
78948
  const { build } = await import("vite");
78949
78949
  process.env.HOUDINI_SCHEMA_BUILD = "true";
78950
+ console.log(path2.join(config2.localApiDir, "+schema"));
78950
78951
  await build({
78951
78952
  logLevel: "silent",
78952
78953
  build: {
@@ -78970,6 +78971,11 @@ async function buildLocalSchema(config2) {
78970
78971
  });
78971
78972
  process.env.HOUDINI_SCHEMA_BUILD = "false";
78972
78973
  }
78974
+ async function loadLocalSchema(config2) {
78975
+ await buildLocalSchema(config2);
78976
+ const { default: schema } = await import(path2.join(config2.rootDir, "temp", "assets", "schema.js"));
78977
+ return schema;
78978
+ }
78973
78979
 
78974
78980
  // src/plugin/index.ts
78975
78981
  import path3 from "node:path";
@@ -79710,10 +79716,7 @@ if (window.__houdini__nav_caches__ && window.__houdini__nav_caches__.artifact_ca
79710
79716
  const project_manifest = await load_manifest({ config: server.houdiniConfig });
79711
79717
  let schema = null;
79712
79718
  if (project_manifest.local_schema) {
79713
- await buildLocalSchema(server.houdiniConfig);
79714
- schema = (await server.ssrLoadModule(
79715
- path_exports.join(server.houdiniConfig.rootDir, "temp", "assets", "schema.js")
79716
- )).default;
79719
+ schema = await loadLocalSchema(server.houdiniConfig);
79717
79720
  }
79718
79721
  const serverAdapter = (await server.ssrLoadModule(
79719
79722
  conventions_exports.server_adapter_path(server.houdiniConfig) + "?t=" + new Date().getTime()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "1.2.20-next.0",
3
+ "version": "1.2.20-next.1",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -42,7 +42,7 @@
42
42
  "recast": "^0.23.1",
43
43
  "rollup": "^3.7.4",
44
44
  "use-deep-compare-effect": "^1.8.1",
45
- "houdini": "^1.2.20-next.0"
45
+ "houdini": "^1.2.20-next.1"
46
46
  },
47
47
  "files": [
48
48
  "build"