kyro-connect 0.1.12 → 0.1.13
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.
|
@@ -199,7 +199,6 @@ async function main() {
|
|
|
199
199
|
process.exit(1);
|
|
200
200
|
}
|
|
201
201
|
const schemaUrl = `${url.replace(/\/$/, "")}/kyro/schema`;
|
|
202
|
-
console.log(`[kyro-codegen] Fetching schema from ${schemaUrl}...`);
|
|
203
202
|
let res;
|
|
204
203
|
try {
|
|
205
204
|
res = await fetch(schemaUrl, {
|
|
@@ -230,8 +229,6 @@ async function main() {
|
|
|
230
229
|
(0, import_fs.writeFileSync)(outPath, dts, "utf-8");
|
|
231
230
|
const colCount = Object.keys(schema.collections ?? {}).length;
|
|
232
231
|
const globalCount = Object.keys(schema.globals ?? {}).length;
|
|
233
|
-
console.log(`[kyro-codegen] Generated ${outPath}`);
|
|
234
|
-
console.log(`[kyro-codegen] ${colCount} collections, ${globalCount} globals`);
|
|
235
232
|
}
|
|
236
233
|
function getArg(args, name) {
|
|
237
234
|
const idx = args.indexOf(name);
|
package/dist/bin/kyro-codegen.js
CHANGED
|
@@ -198,7 +198,6 @@ async function main() {
|
|
|
198
198
|
process.exit(1);
|
|
199
199
|
}
|
|
200
200
|
const schemaUrl = `${url.replace(/\/$/, "")}/kyro/schema`;
|
|
201
|
-
console.log(`[kyro-codegen] Fetching schema from ${schemaUrl}...`);
|
|
202
201
|
let res;
|
|
203
202
|
try {
|
|
204
203
|
res = await fetch(schemaUrl, {
|
|
@@ -229,8 +228,6 @@ async function main() {
|
|
|
229
228
|
writeFileSync(outPath, dts, "utf-8");
|
|
230
229
|
const colCount = Object.keys(schema.collections ?? {}).length;
|
|
231
230
|
const globalCount = Object.keys(schema.globals ?? {}).length;
|
|
232
|
-
console.log(`[kyro-codegen] Generated ${outPath}`);
|
|
233
|
-
console.log(`[kyro-codegen] ${colCount} collections, ${globalCount} globals`);
|
|
234
231
|
}
|
|
235
232
|
function getArg(args, name) {
|
|
236
233
|
const idx = args.indexOf(name);
|