houdini 2.0.0-next.24 → 2.0.0-next.26
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/init.js +9 -5
- package/build/lib/logger.js +1 -1
- package/build/lib/types.d.ts +1 -1
- package/build/lib/types.js +1 -1
- package/build/package.json +1 -1
- package/build/vite/hmr.js +5 -3
- package/package.json +1 -1
package/build/cmd/init.js
CHANGED
|
@@ -181,6 +181,7 @@ async function init(_path, args) {
|
|
|
181
181
|
}
|
|
182
182
|
await gitIgnore({
|
|
183
183
|
targetPath,
|
|
184
|
+
runtimeDir,
|
|
184
185
|
schemaPath: is_remote_endpoint ? schemaPath : void 0
|
|
185
186
|
});
|
|
186
187
|
await graphqlRC(targetPath, runtimeDir);
|
|
@@ -328,12 +329,15 @@ export default config;
|
|
|
328
329
|
`;
|
|
329
330
|
await fs.writeFile(svelteConfigPath, typescript ? newContentTs : newContentJs);
|
|
330
331
|
}
|
|
331
|
-
async function gitIgnore({ targetPath, schemaPath }) {
|
|
332
|
+
async function gitIgnore({ targetPath, runtimeDir, schemaPath }) {
|
|
332
333
|
const filepath = path.join(targetPath, ".gitignore");
|
|
333
334
|
const existing = await fs.readFile(filepath) || "";
|
|
334
335
|
let newIgnores = "";
|
|
335
|
-
if (!existing.includes(
|
|
336
|
-
|
|
336
|
+
if (!existing.includes(`
|
|
337
|
+
${runtimeDir}
|
|
338
|
+
`)) {
|
|
339
|
+
newIgnores += `${runtimeDir}
|
|
340
|
+
`;
|
|
337
341
|
}
|
|
338
342
|
if (schemaPath && !existing.includes(`
|
|
339
343
|
${schemaPath}
|
|
@@ -437,12 +441,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
437
441
|
}
|
|
438
442
|
packageJSON2.devDependencies = {
|
|
439
443
|
...packageJSON2.devDependencies,
|
|
440
|
-
houdini: "^2.0.0-next.
|
|
444
|
+
houdini: "^2.0.0-next.26"
|
|
441
445
|
};
|
|
442
446
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
443
447
|
packageJSON2.devDependencies = {
|
|
444
448
|
...packageJSON2.devDependencies,
|
|
445
|
-
"houdini-svelte": "^3.0.0-next.
|
|
449
|
+
"houdini-svelte": "^3.0.0-next.27"
|
|
446
450
|
};
|
|
447
451
|
} else {
|
|
448
452
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/lib/logger.js
CHANGED
package/build/lib/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Config } from './config.js';
|
|
|
4
4
|
export declare const LogLevel: {
|
|
5
5
|
readonly Quiet: "quiet";
|
|
6
6
|
readonly Summary: "summary";
|
|
7
|
-
readonly
|
|
7
|
+
readonly ShortSummary: "short-summary";
|
|
8
8
|
readonly Verbose: "full";
|
|
9
9
|
};
|
|
10
10
|
export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
package/build/lib/types.js
CHANGED
package/build/package.json
CHANGED
package/build/vite/hmr.js
CHANGED
|
@@ -12,11 +12,13 @@ function document_hmr(ctx) {
|
|
|
12
12
|
compiler.close();
|
|
13
13
|
});
|
|
14
14
|
try {
|
|
15
|
-
|
|
15
|
+
await compiler.run_pipeline({
|
|
16
16
|
after: "Schema"
|
|
17
17
|
});
|
|
18
|
-
const docCount =
|
|
19
|
-
console.log(
|
|
18
|
+
const docCount = ctx.db.prepare("SELECT COUNT(*) as count FROM documents WHERE visible = 1").get();
|
|
19
|
+
console.log(
|
|
20
|
+
`\u{1F3A9} Generated ${docCount.count} ${docCount.count === 1 ? "document" : "documents"}`
|
|
21
|
+
);
|
|
20
22
|
} catch {
|
|
21
23
|
}
|
|
22
24
|
},
|