houdini-react 1.2.55 → 1.2.57

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.
@@ -3,4 +3,3 @@ export declare function generate_type_root({ config, manifest, }: {
3
3
  config: Config;
4
4
  manifest: ProjectManifest;
5
5
  }): Promise<void>;
6
- export declare function writeTsconfig(config: Config): Promise<void>;
@@ -76965,6 +76965,7 @@ var Layer = class {
76965
76965
  [id]: {
76966
76966
  ...this.operations[id],
76967
76967
  fields: {
76968
+ ...this.operations[id]?.fields,
76968
76969
  [field]: [...this.operations[id]?.fields[field] || [], operation]
76969
76970
  }
76970
76971
  }
@@ -79540,52 +79541,6 @@ ${!layout ? "" : layout.query_options.map(
79540
79541
  })
79541
79542
  ]);
79542
79543
  }
79543
- async function writeTsconfig(config) {
79544
- await fs_exports.writeFile(
79545
- path_exports.join(config.rootDir, "tsconfig.json"),
79546
- JSON.stringify(
79547
- {
79548
- compilerOptions: {
79549
- paths: {
79550
- $houdini: ["."],
79551
- "$houdini/*": ["./*"],
79552
- "~": ["../src"],
79553
- "~/*": ["../src/*"]
79554
- },
79555
- rootDirs: ["..", "./types"],
79556
- target: "ESNext",
79557
- useDefineForClassFields: true,
79558
- lib: ["DOM", "DOM.Iterable", "ESNext"],
79559
- allowJs: false,
79560
- skipLibCheck: true,
79561
- esModuleInterop: false,
79562
- allowSyntheticDefaultImports: true,
79563
- strict: true,
79564
- forceConsistentCasingInFileNames: true,
79565
- module: "ESNext",
79566
- moduleResolution: "Node",
79567
- resolveJsonModule: true,
79568
- isolatedModules: true,
79569
- noEmit: true,
79570
- jsx: "react-jsx"
79571
- },
79572
- include: [
79573
- "ambient.d.ts",
79574
- "./types/**/$types.d.ts",
79575
- "../vite.config.ts",
79576
- "../src/**/*.js",
79577
- "../src/**/*.ts",
79578
- "../src/**/*.jsx",
79579
- "../src/**/*.tsx",
79580
- "../src/+app.d.ts"
79581
- ],
79582
- exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
79583
- },
79584
- null,
79585
- 4
79586
- )
79587
- );
79588
- }
79589
79544
  function paramsType(config, params) {
79590
79545
  return `{
79591
79546
  ${Object.entries(params ?? {}).map(([param, typeInfo]) => {
@@ -79873,9 +79828,6 @@ var vite_default = {
79873
79828
  }
79874
79829
  return id.substring(id.indexOf("virtual:houdini"));
79875
79830
  },
79876
- async buildStart({ houdiniConfig }) {
79877
- await writeTsconfig(houdiniConfig);
79878
- },
79879
79831
  async closeBundle(config) {
79880
79832
  if (isSecondaryBuild() || viteEnv.mode !== "production" || devServer) {
79881
79833
  return;
@@ -80081,7 +80033,6 @@ root.render(React.createElement(App, {
80081
80033
  },
80082
80034
  async configureServer(server) {
80083
80035
  devServer = true;
80084
- await writeTsconfig(server.houdiniConfig);
80085
80036
  server.middlewares.use(async (req, res, next) => {
80086
80037
  if (!req.url) {
80087
80038
  next();
@@ -76955,6 +76955,7 @@ var Layer = class {
76955
76955
  [id]: {
76956
76956
  ...this.operations[id],
76957
76957
  fields: {
76958
+ ...this.operations[id]?.fields,
76958
76959
  [field]: [...this.operations[id]?.fields[field] || [], operation]
76959
76960
  }
76960
76961
  }
@@ -79530,52 +79531,6 @@ ${!layout ? "" : layout.query_options.map(
79530
79531
  })
79531
79532
  ]);
79532
79533
  }
79533
- async function writeTsconfig(config) {
79534
- await fs_exports.writeFile(
79535
- path_exports.join(config.rootDir, "tsconfig.json"),
79536
- JSON.stringify(
79537
- {
79538
- compilerOptions: {
79539
- paths: {
79540
- $houdini: ["."],
79541
- "$houdini/*": ["./*"],
79542
- "~": ["../src"],
79543
- "~/*": ["../src/*"]
79544
- },
79545
- rootDirs: ["..", "./types"],
79546
- target: "ESNext",
79547
- useDefineForClassFields: true,
79548
- lib: ["DOM", "DOM.Iterable", "ESNext"],
79549
- allowJs: false,
79550
- skipLibCheck: true,
79551
- esModuleInterop: false,
79552
- allowSyntheticDefaultImports: true,
79553
- strict: true,
79554
- forceConsistentCasingInFileNames: true,
79555
- module: "ESNext",
79556
- moduleResolution: "Node",
79557
- resolveJsonModule: true,
79558
- isolatedModules: true,
79559
- noEmit: true,
79560
- jsx: "react-jsx"
79561
- },
79562
- include: [
79563
- "ambient.d.ts",
79564
- "./types/**/$types.d.ts",
79565
- "../vite.config.ts",
79566
- "../src/**/*.js",
79567
- "../src/**/*.ts",
79568
- "../src/**/*.jsx",
79569
- "../src/**/*.tsx",
79570
- "../src/+app.d.ts"
79571
- ],
79572
- exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
79573
- },
79574
- null,
79575
- 4
79576
- )
79577
- );
79578
- }
79579
79534
  function paramsType(config, params) {
79580
79535
  return `{
79581
79536
  ${Object.entries(params ?? {}).map(([param, typeInfo]) => {
@@ -79863,9 +79818,6 @@ var vite_default = {
79863
79818
  }
79864
79819
  return id.substring(id.indexOf("virtual:houdini"));
79865
79820
  },
79866
- async buildStart({ houdiniConfig }) {
79867
- await writeTsconfig(houdiniConfig);
79868
- },
79869
79821
  async closeBundle(config) {
79870
79822
  if (isSecondaryBuild() || viteEnv.mode !== "production" || devServer) {
79871
79823
  return;
@@ -80071,7 +80023,6 @@ root.render(React.createElement(App, {
80071
80023
  },
80072
80024
  async configureServer(server) {
80073
80025
  devServer = true;
80074
- await writeTsconfig(server.houdiniConfig);
80075
80026
  server.middlewares.use(async (req, res, next) => {
80076
80027
  if (!req.url) {
80077
80028
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -43,7 +43,7 @@
43
43
  "recast": "^0.23.1",
44
44
  "rollup": "^3.7.4",
45
45
  "use-deep-compare-effect": "^1.8.1",
46
- "houdini": "^1.2.55"
46
+ "houdini": "^1.2.57"
47
47
  },
48
48
  "files": [
49
49
  "build"