@kubb/studio 5.15.0 → 5.15.2
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/protocol-B4wWGPon.cjs.map +1 -1
- package/dist/protocol-B6oWLc7W.js.map +1 -1
- package/dist/{protocol-a0ItUgk9.d.ts → protocol-f2YAAGLi.d.cts} +8 -4
- package/dist/{protocol-a0ItUgk9.d.cts → protocol-f2YAAGLi.d.ts} +8 -4
- package/dist/protocol.d.cts +1 -1
- package/dist/protocol.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -234,7 +234,7 @@ function getElapsedMs(hrStart) {
|
|
|
234
234
|
return Math.round(ms * 100) / 100;
|
|
235
235
|
}
|
|
236
236
|
// package.json
|
|
237
|
-
var version = "5.15.
|
|
237
|
+
var version = "5.15.2";
|
|
238
238
|
// ../../internals/shared/src/constants.ts
|
|
239
239
|
/**
|
|
240
240
|
* Extensions `kubb` ships at its own version, so they count as installed without being a direct
|
|
@@ -2252,9 +2252,9 @@ const INSTALL_TIMEOUT_MS = 3e5;
|
|
|
2252
2252
|
const REGISTRY_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*(?:\/[a-z0-9]+(?:-[a-z0-9]+)*)?$/;
|
|
2253
2253
|
/** The CLI the project depends on, so `kubb add` installs next to what the config imports. */
|
|
2254
2254
|
function findKubbBin(root) {
|
|
2255
|
-
const
|
|
2255
|
+
const requireModule = (0, node_module.createRequire)(node_path.default.resolve(root, "package.json"));
|
|
2256
2256
|
const names = ["kubb", "@kubb/cli"];
|
|
2257
|
-
return (
|
|
2257
|
+
return (requireModule.resolve.paths("kubb") ?? []).flatMap((dir) => names.map((name) => node_path.default.join(dir, name, "bin", "kubb.js"))).find((bin) => (0, node_fs.existsSync)(bin));
|
|
2258
2258
|
}
|
|
2259
2259
|
/** Runs a `kubb` command without a shell, and keeps the end of its output for the failure reason. */
|
|
2260
2260
|
async function runKubb({ bin, args, cwd, signal }) {
|