houdini 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.
@@ -78412,12 +78412,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78412
78412
  }
78413
78413
  packageJSON2.devDependencies = {
78414
78414
  ...packageJSON2.devDependencies,
78415
- houdini: "^1.2.56"
78415
+ houdini: "^1.2.57"
78416
78416
  };
78417
78417
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78418
78418
  packageJSON2.devDependencies = {
78419
78419
  ...packageJSON2.devDependencies,
78420
- "houdini-svelte": "^1.2.56"
78420
+ "houdini-svelte": "^1.2.57"
78421
78421
  };
78422
78422
  } else {
78423
78423
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -78417,12 +78417,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78417
78417
  }
78418
78418
  packageJSON2.devDependencies = {
78419
78419
  ...packageJSON2.devDependencies,
78420
- houdini: "^1.2.56"
78420
+ houdini: "^1.2.57"
78421
78421
  };
78422
78422
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78423
78423
  packageJSON2.devDependencies = {
78424
78424
  ...packageJSON2.devDependencies,
78425
- "houdini-svelte": "^1.2.56"
78425
+ "houdini-svelte": "^1.2.57"
78426
78426
  };
78427
78427
  } else {
78428
78428
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -17,3 +17,4 @@ export declare function scalarPropertyValue(config: Config, filepath: string, mi
17
17
  parent: string;
18
18
  field: string;
19
19
  } | null): TSTypeKind;
20
+ export declare function writeTsConfig(config: Config): Promise<void>;
@@ -58255,7 +58255,8 @@ __export(lib_exports, {
58255
58255
  tsTypeReference: () => tsTypeReference,
58256
58256
  unwrapType: () => unwrapType,
58257
58257
  unwrappedTsTypeReference: () => unwrappedTsTypeReference,
58258
- wrapType: () => wrapType
58258
+ wrapType: () => wrapType,
58259
+ writeTsConfig: () => writeTsConfig
58259
58260
  });
58260
58261
  module.exports = __toCommonJS(lib_exports);
58261
58262
 
@@ -69412,6 +69413,54 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
69412
69413
  }
69413
69414
  }
69414
69415
  }
69416
+ async function writeTsConfig(config) {
69417
+ await fs_exports.mkdirp(config.rootDir);
69418
+ await fs_exports.writeFile(
69419
+ path_exports.join(config.rootDir, "tsconfig.json"),
69420
+ JSON.stringify(
69421
+ {
69422
+ compilerOptions: {
69423
+ baseUrl: ".",
69424
+ paths: {
69425
+ $houdini: ["."],
69426
+ "$houdini/*": ["./*"],
69427
+ "~": ["../src"],
69428
+ "~/*": ["../src/*"]
69429
+ },
69430
+ rootDirs: ["..", "./types"],
69431
+ target: "ESNext",
69432
+ useDefineForClassFields: true,
69433
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
69434
+ allowJs: false,
69435
+ skipLibCheck: true,
69436
+ esModuleInterop: false,
69437
+ allowSyntheticDefaultImports: true,
69438
+ strict: true,
69439
+ forceConsistentCasingInFileNames: true,
69440
+ module: "ESNext",
69441
+ moduleResolution: "Node",
69442
+ resolveJsonModule: true,
69443
+ isolatedModules: true,
69444
+ noEmit: true,
69445
+ jsx: "react-jsx"
69446
+ },
69447
+ include: [
69448
+ "ambient.d.ts",
69449
+ "./types/**/$types.d.ts",
69450
+ "../vite.config.ts",
69451
+ "../src/**/*.js",
69452
+ "../src/**/*.ts",
69453
+ "../src/**/*.jsx",
69454
+ "../src/**/*.tsx",
69455
+ "../src/+app.d.ts"
69456
+ ],
69457
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
69458
+ },
69459
+ null,
69460
+ 4
69461
+ )
69462
+ );
69463
+ }
69415
69464
 
69416
69465
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
69417
69466
  var WalkerBase = class {
@@ -69810,7 +69859,8 @@ function extractAnonymousQuery(config, raw, expr, propName) {
69810
69859
  tsTypeReference,
69811
69860
  unwrapType,
69812
69861
  unwrappedTsTypeReference,
69813
- wrapType
69862
+ wrapType,
69863
+ writeTsConfig
69814
69864
  });
69815
69865
  /*!
69816
69866
  * cookie
@@ -69327,6 +69327,54 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
69327
69327
  }
69328
69328
  }
69329
69329
  }
69330
+ async function writeTsConfig(config) {
69331
+ await fs_exports.mkdirp(config.rootDir);
69332
+ await fs_exports.writeFile(
69333
+ path_exports.join(config.rootDir, "tsconfig.json"),
69334
+ JSON.stringify(
69335
+ {
69336
+ compilerOptions: {
69337
+ baseUrl: ".",
69338
+ paths: {
69339
+ $houdini: ["."],
69340
+ "$houdini/*": ["./*"],
69341
+ "~": ["../src"],
69342
+ "~/*": ["../src/*"]
69343
+ },
69344
+ rootDirs: ["..", "./types"],
69345
+ target: "ESNext",
69346
+ useDefineForClassFields: true,
69347
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
69348
+ allowJs: false,
69349
+ skipLibCheck: true,
69350
+ esModuleInterop: false,
69351
+ allowSyntheticDefaultImports: true,
69352
+ strict: true,
69353
+ forceConsistentCasingInFileNames: true,
69354
+ module: "ESNext",
69355
+ moduleResolution: "Node",
69356
+ resolveJsonModule: true,
69357
+ isolatedModules: true,
69358
+ noEmit: true,
69359
+ jsx: "react-jsx"
69360
+ },
69361
+ include: [
69362
+ "ambient.d.ts",
69363
+ "./types/**/$types.d.ts",
69364
+ "../vite.config.ts",
69365
+ "../src/**/*.js",
69366
+ "../src/**/*.ts",
69367
+ "../src/**/*.jsx",
69368
+ "../src/**/*.tsx",
69369
+ "../src/+app.d.ts"
69370
+ ],
69371
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
69372
+ },
69373
+ null,
69374
+ 4
69375
+ )
69376
+ );
69377
+ }
69330
69378
 
69331
69379
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
69332
69380
  var WalkerBase = class {
@@ -69724,7 +69772,8 @@ export {
69724
69772
  tsTypeReference,
69725
69773
  unwrapType,
69726
69774
  unwrappedTsTypeReference,
69727
- wrapType
69775
+ wrapType,
69776
+ writeTsConfig
69728
69777
  };
69729
69778
  /*!
69730
69779
  * cookie
@@ -70385,6 +70385,54 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
70385
70385
  }
70386
70386
  }
70387
70387
  }
70388
+ async function writeTsConfig(config2) {
70389
+ await fs_exports.mkdirp(config2.rootDir);
70390
+ await fs_exports.writeFile(
70391
+ path_exports.join(config2.rootDir, "tsconfig.json"),
70392
+ JSON.stringify(
70393
+ {
70394
+ compilerOptions: {
70395
+ baseUrl: ".",
70396
+ paths: {
70397
+ $houdini: ["."],
70398
+ "$houdini/*": ["./*"],
70399
+ "~": ["../src"],
70400
+ "~/*": ["../src/*"]
70401
+ },
70402
+ rootDirs: ["..", "./types"],
70403
+ target: "ESNext",
70404
+ useDefineForClassFields: true,
70405
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
70406
+ allowJs: false,
70407
+ skipLibCheck: true,
70408
+ esModuleInterop: false,
70409
+ allowSyntheticDefaultImports: true,
70410
+ strict: true,
70411
+ forceConsistentCasingInFileNames: true,
70412
+ module: "ESNext",
70413
+ moduleResolution: "Node",
70414
+ resolveJsonModule: true,
70415
+ isolatedModules: true,
70416
+ noEmit: true,
70417
+ jsx: "react-jsx"
70418
+ },
70419
+ include: [
70420
+ "ambient.d.ts",
70421
+ "./types/**/$types.d.ts",
70422
+ "../vite.config.ts",
70423
+ "../src/**/*.js",
70424
+ "../src/**/*.ts",
70425
+ "../src/**/*.jsx",
70426
+ "../src/**/*.tsx",
70427
+ "../src/+app.d.ts"
70428
+ ],
70429
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
70430
+ },
70431
+ null,
70432
+ 4
70433
+ )
70434
+ );
70435
+ }
70388
70436
 
70389
70437
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
70390
70438
  var WalkerBase = class {
@@ -78883,6 +78931,7 @@ function Plugin(opts = {}) {
78883
78931
  }
78884
78932
  },
78885
78933
  async buildStart(args) {
78934
+ await writeTsConfig(config);
78886
78935
  if (config.adapter?.pre && viteEnv.command === "build" && !isSecondaryBuild()) {
78887
78936
  await config.adapter.pre({
78888
78937
  config,
@@ -78929,6 +78978,7 @@ function Plugin(opts = {}) {
78929
78978
  },
78930
78979
  async configureServer(server) {
78931
78980
  devServer = true;
78981
+ await writeTsConfig(config);
78932
78982
  if (config.localSchema) {
78933
78983
  config.schema = (await server.ssrLoadModule(config.localSchemaPath)).default;
78934
78984
  server.watcher.add(config.localSchemaPath);
@@ -70378,6 +70378,54 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
70378
70378
  }
70379
70379
  }
70380
70380
  }
70381
+ async function writeTsConfig(config2) {
70382
+ await fs_exports.mkdirp(config2.rootDir);
70383
+ await fs_exports.writeFile(
70384
+ path_exports.join(config2.rootDir, "tsconfig.json"),
70385
+ JSON.stringify(
70386
+ {
70387
+ compilerOptions: {
70388
+ baseUrl: ".",
70389
+ paths: {
70390
+ $houdini: ["."],
70391
+ "$houdini/*": ["./*"],
70392
+ "~": ["../src"],
70393
+ "~/*": ["../src/*"]
70394
+ },
70395
+ rootDirs: ["..", "./types"],
70396
+ target: "ESNext",
70397
+ useDefineForClassFields: true,
70398
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
70399
+ allowJs: false,
70400
+ skipLibCheck: true,
70401
+ esModuleInterop: false,
70402
+ allowSyntheticDefaultImports: true,
70403
+ strict: true,
70404
+ forceConsistentCasingInFileNames: true,
70405
+ module: "ESNext",
70406
+ moduleResolution: "Node",
70407
+ resolveJsonModule: true,
70408
+ isolatedModules: true,
70409
+ noEmit: true,
70410
+ jsx: "react-jsx"
70411
+ },
70412
+ include: [
70413
+ "ambient.d.ts",
70414
+ "./types/**/$types.d.ts",
70415
+ "../vite.config.ts",
70416
+ "../src/**/*.js",
70417
+ "../src/**/*.ts",
70418
+ "../src/**/*.jsx",
70419
+ "../src/**/*.tsx",
70420
+ "../src/+app.d.ts"
70421
+ ],
70422
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
70423
+ },
70424
+ null,
70425
+ 4
70426
+ )
70427
+ );
70428
+ }
70381
70429
 
70382
70430
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
70383
70431
  var WalkerBase = class {
@@ -78876,6 +78924,7 @@ function Plugin(opts = {}) {
78876
78924
  }
78877
78925
  },
78878
78926
  async buildStart(args) {
78927
+ await writeTsConfig(config);
78879
78928
  if (config.adapter?.pre && viteEnv.command === "build" && !isSecondaryBuild()) {
78880
78929
  await config.adapter.pre({
78881
78930
  config,
@@ -78922,6 +78971,7 @@ function Plugin(opts = {}) {
78922
78971
  },
78923
78972
  async configureServer(server) {
78924
78973
  devServer = true;
78974
+ await writeTsConfig(config);
78925
78975
  if (config.localSchema) {
78926
78976
  config.schema = (await server.ssrLoadModule(config.localSchemaPath)).default;
78927
78977
  server.watcher.add(config.localSchemaPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",