@keystrokehq/cli 0.0.110 → 0.0.111
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/dist/{schemas-DwAYtN9C.mjs → discovery-XqwkB9H_-CQLSzR72.mjs} +20 -2
- package/dist/discovery-XqwkB9H_-CQLSzR72.mjs.map +1 -0
- package/dist/{dist-D1ip549D.mjs → dist-IKyaKHgU.mjs} +3 -20
- package/dist/dist-IKyaKHgU.mjs.map +1 -0
- package/dist/index.mjs +271 -166
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/dist-D1ip549D.mjs.map +0 -1
- package/dist/schemas-DwAYtN9C.mjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { relative, sep } from "node:path";
|
|
2
3
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
3
4
|
var _a$1;
|
|
4
5
|
function $constructor(name, initializer, params) {
|
|
@@ -4291,6 +4292,23 @@ function superRefine(fn, params) {
|
|
|
4291
4292
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4292
4293
|
}
|
|
4293
4294
|
//#endregion
|
|
4294
|
-
|
|
4295
|
+
//#region ../../packages/server/dist/discovery-XqwkB9H_.mjs
|
|
4296
|
+
const SOURCE_EXT = /\.(ts|mts|mjs|js)$/;
|
|
4297
|
+
const DECLARATION_FILE = /\.d\.(ts|mts|cts)$/;
|
|
4298
|
+
function entryIdFromFile(rootDir, filePath, options) {
|
|
4299
|
+
if (DECLARATION_FILE.test(filePath)) return null;
|
|
4300
|
+
const baseName = filePath.split(sep).at(-1) ?? "";
|
|
4301
|
+
if (/\.(int\.)?test\.(ts|mts)$/.test(baseName)) return null;
|
|
4302
|
+
const segments = relative(rootDir, filePath).replace(SOURCE_EXT, "").split(sep).filter((segment) => segment.length > 0);
|
|
4303
|
+
if (segments.length === 1) return segments[0] ?? null;
|
|
4304
|
+
const last = segments.at(-1);
|
|
4305
|
+
const entryNames = new Set([options.nestedEntry]);
|
|
4306
|
+
if (options.allowIndex !== false) entryNames.add("index");
|
|
4307
|
+
if (!last || !entryNames.has(last)) return null;
|
|
4308
|
+
const id = segments.slice(0, -1).join("/");
|
|
4309
|
+
return id.length > 0 ? id : null;
|
|
4310
|
+
}
|
|
4311
|
+
//#endregion
|
|
4312
|
+
export { array as a, discriminatedUnion as c, object as d, record as f, _coercedNumber as g, unknown as h, _enum as i, literal as l, union as m, ZodNumber as n, boolean as o, string as p, ZodType as r, custom as s, entryIdFromFile as t, number as u };
|
|
4295
4313
|
|
|
4296
|
-
//# sourceMappingURL=
|
|
4314
|
+
//# sourceMappingURL=discovery-XqwkB9H_-CQLSzR72.mjs.map
|