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