@kubb/core 5.9.1 → 5.9.3
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/{KubbDriver-GBBjs4Pb.js → KubbDriver-C0hejO6L.js} +2 -2
- package/dist/{KubbDriver-GBBjs4Pb.js.map → KubbDriver-C0hejO6L.js.map} +1 -1
- package/dist/{KubbDriver-Cd01FAa0.cjs → KubbDriver-CrzfVOkH.cjs} +2 -2
- package/dist/{KubbDriver-Cd01FAa0.cjs.map → KubbDriver-CrzfVOkH.cjs.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mocks.cjs +1 -1
- package/dist/mocks.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./rolldown-runtime-CRm0XQPb.js";
|
|
2
|
-
import { A as getElapsedMs, C as useOptions, D as resolveMeta, E as defineExtension, F as read, I as toPosixPath, L as write, M as clean, N as exists, O as Diagnostics, P as isPathInside, R as toError, S as useKubb, T as createExtensionFactory, _ as setMacros, a as _usingCtx, b as tryUseKubb, c as Resolver, d as definePlugin, f as addGenerator, g as requirePlugin, h as kubbContext, j as inParallel, k as formatMs, l as getInputKind, m as injectFile, o as Hookable, p as addMacro, s as createResolver, t as KubbDriver, u as assertPluginOption, v as setOptions, w as checkCompatibility, x as useConfig, y as setResolver } from "./KubbDriver-
|
|
2
|
+
import { A as getElapsedMs, C as useOptions, D as resolveMeta, E as defineExtension, F as read, I as toPosixPath, L as write, M as clean, N as exists, O as Diagnostics, P as isPathInside, R as toError, S as useKubb, T as createExtensionFactory, _ as setMacros, a as _usingCtx, b as tryUseKubb, c as Resolver, d as definePlugin, f as addGenerator, g as requirePlugin, h as kubbContext, j as inParallel, k as formatMs, l as getInputKind, m as injectFile, o as Hookable, p as addMacro, s as createResolver, t as KubbDriver, u as assertPluginOption, v as setOptions, w as checkCompatibility, x as useConfig, y as setResolver } from "./KubbDriver-C0hejO6L.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { isValid } from "verkit";
|
|
5
5
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
@@ -1375,7 +1375,7 @@ const readJSON = async (file) => JSON.parse(await readFile(file, "utf8"));
|
|
|
1375
1375
|
* for the extensions it ships with.
|
|
1376
1376
|
*/
|
|
1377
1377
|
async function readInstalledPackages({ root, packages = [], resolveFrom = [] }) {
|
|
1378
|
-
const project = createRequire(path.
|
|
1378
|
+
const project = createRequire(path.resolve(root, "package.json"));
|
|
1379
1379
|
const requires = [project, ...resolveFrom.flatMap((name) => {
|
|
1380
1380
|
try {
|
|
1381
1381
|
return [createRequire(project.resolve(`${name}/package.json`))];
|