houdini 1.5.8 → 1.5.9
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 +18 -5
- package/build/cmd-esm/index.js +18 -5
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -82033,7 +82033,10 @@ async function init2(_path, args) {
|
|
|
82033
82033
|
} else if (frameworkInfo.framework === "kit") {
|
|
82034
82034
|
await svelteConfig(targetPath, typescript);
|
|
82035
82035
|
}
|
|
82036
|
-
await gitIgnore(
|
|
82036
|
+
await gitIgnore({
|
|
82037
|
+
targetPath,
|
|
82038
|
+
schemaPath: is_remote_endpoint ? path_exports.relative(targetPath, schemaPath) : void 0
|
|
82039
|
+
});
|
|
82037
82040
|
await graphqlRC(targetPath);
|
|
82038
82041
|
await viteConfig(targetPath, frameworkInfo, typescript);
|
|
82039
82042
|
await tjsConfig(targetPath, frameworkInfo);
|
|
@@ -82184,11 +82187,21 @@ async function svelteConfig(targetPath, typescript) {
|
|
|
82184
82187
|
});
|
|
82185
82188
|
await fs_exports.writeFile(svelteConfigPath, recast14.print(ast).code);
|
|
82186
82189
|
}
|
|
82187
|
-
async function gitIgnore(targetPath) {
|
|
82190
|
+
async function gitIgnore({ targetPath, schemaPath }) {
|
|
82188
82191
|
const filepath = path_exports.join(targetPath, ".gitignore");
|
|
82189
82192
|
const existing = await fs_exports.readFile(filepath) || "";
|
|
82193
|
+
let newIgnores = "";
|
|
82190
82194
|
if (!existing.includes("\n.houdini\n")) {
|
|
82191
|
-
|
|
82195
|
+
newIgnores += ".houdini\n";
|
|
82196
|
+
}
|
|
82197
|
+
if (schemaPath && !existing.includes(`
|
|
82198
|
+
${schemaPath}
|
|
82199
|
+
`)) {
|
|
82200
|
+
newIgnores += `${schemaPath}
|
|
82201
|
+
`;
|
|
82202
|
+
}
|
|
82203
|
+
if (newIgnores) {
|
|
82204
|
+
await fs_exports.writeFile(filepath, existing + "\n" + newIgnores);
|
|
82192
82205
|
}
|
|
82193
82206
|
}
|
|
82194
82207
|
async function graphqlRC(targetPath) {
|
|
@@ -82362,13 +82375,13 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
82362
82375
|
}
|
|
82363
82376
|
packageJSON2.devDependencies = {
|
|
82364
82377
|
...packageJSON2.devDependencies,
|
|
82365
|
-
houdini: "^1.5.
|
|
82378
|
+
houdini: "^1.5.9",
|
|
82366
82379
|
"@sveltejs/kit": "<=2.21.0"
|
|
82367
82380
|
};
|
|
82368
82381
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
82369
82382
|
packageJSON2.devDependencies = {
|
|
82370
82383
|
...packageJSON2.devDependencies,
|
|
82371
|
-
"houdini-svelte": "^2.1.
|
|
82384
|
+
"houdini-svelte": "^2.1.19"
|
|
82372
82385
|
};
|
|
82373
82386
|
} else {
|
|
82374
82387
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -82038,7 +82038,10 @@ async function init2(_path, args) {
|
|
|
82038
82038
|
} else if (frameworkInfo.framework === "kit") {
|
|
82039
82039
|
await svelteConfig(targetPath, typescript);
|
|
82040
82040
|
}
|
|
82041
|
-
await gitIgnore(
|
|
82041
|
+
await gitIgnore({
|
|
82042
|
+
targetPath,
|
|
82043
|
+
schemaPath: is_remote_endpoint ? path_exports.relative(targetPath, schemaPath) : void 0
|
|
82044
|
+
});
|
|
82042
82045
|
await graphqlRC(targetPath);
|
|
82043
82046
|
await viteConfig(targetPath, frameworkInfo, typescript);
|
|
82044
82047
|
await tjsConfig(targetPath, frameworkInfo);
|
|
@@ -82189,11 +82192,21 @@ async function svelteConfig(targetPath, typescript) {
|
|
|
82189
82192
|
});
|
|
82190
82193
|
await fs_exports.writeFile(svelteConfigPath, recast14.print(ast).code);
|
|
82191
82194
|
}
|
|
82192
|
-
async function gitIgnore(targetPath) {
|
|
82195
|
+
async function gitIgnore({ targetPath, schemaPath }) {
|
|
82193
82196
|
const filepath = path_exports.join(targetPath, ".gitignore");
|
|
82194
82197
|
const existing = await fs_exports.readFile(filepath) || "";
|
|
82198
|
+
let newIgnores = "";
|
|
82195
82199
|
if (!existing.includes("\n.houdini\n")) {
|
|
82196
|
-
|
|
82200
|
+
newIgnores += ".houdini\n";
|
|
82201
|
+
}
|
|
82202
|
+
if (schemaPath && !existing.includes(`
|
|
82203
|
+
${schemaPath}
|
|
82204
|
+
`)) {
|
|
82205
|
+
newIgnores += `${schemaPath}
|
|
82206
|
+
`;
|
|
82207
|
+
}
|
|
82208
|
+
if (newIgnores) {
|
|
82209
|
+
await fs_exports.writeFile(filepath, existing + "\n" + newIgnores);
|
|
82197
82210
|
}
|
|
82198
82211
|
}
|
|
82199
82212
|
async function graphqlRC(targetPath) {
|
|
@@ -82367,13 +82380,13 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
82367
82380
|
}
|
|
82368
82381
|
packageJSON2.devDependencies = {
|
|
82369
82382
|
...packageJSON2.devDependencies,
|
|
82370
|
-
houdini: "^1.5.
|
|
82383
|
+
houdini: "^1.5.9",
|
|
82371
82384
|
"@sveltejs/kit": "<=2.21.0"
|
|
82372
82385
|
};
|
|
82373
82386
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
82374
82387
|
packageJSON2.devDependencies = {
|
|
82375
82388
|
...packageJSON2.devDependencies,
|
|
82376
|
-
"houdini-svelte": "^2.1.
|
|
82389
|
+
"houdini-svelte": "^2.1.19"
|
|
82377
82390
|
};
|
|
82378
82391
|
} else {
|
|
82379
82392
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|