@kubb/mcp 5.0.0-beta.93 → 5.0.0-beta.95
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 +4 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import fs, { existsSync } from "node:fs";
|
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import process$1 from "node:process";
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "5.0.0-beta.
|
|
14
|
+
var version = "5.0.0-beta.95";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/schemas/generateSchema.ts
|
|
17
17
|
const generateSchema = v.object({
|
|
@@ -120,14 +120,11 @@ function resolvePlugins(pluginsFlag) {
|
|
|
120
120
|
return availablePlugins.filter((plugin) => requested.includes(plugin.value));
|
|
121
121
|
}
|
|
122
122
|
function generateConfigFile({ selectedPlugins, inputPath, outputPath }) {
|
|
123
|
-
return `import { defineConfig } from 'kubb'
|
|
123
|
+
return `import { defineConfig } from 'kubb/config'
|
|
124
124
|
${selectedPlugins.map((plugin) => `import { ${plugin.importName} } from '${plugin.packageName}'`).join("\n")}
|
|
125
125
|
|
|
126
126
|
export default defineConfig({
|
|
127
|
-
|
|
128
|
-
input: {
|
|
129
|
-
path: '${inputPath}',
|
|
130
|
-
},
|
|
127
|
+
input: '${inputPath}',
|
|
131
128
|
output: {
|
|
132
129
|
path: '${outputPath}',
|
|
133
130
|
clean: true,
|
|
@@ -6141,6 +6138,7 @@ async function loadUserConfig(configPath, { notify }) {
|
|
|
6141
6138
|
"kubb.config.mts",
|
|
6142
6139
|
"kubb.config.cts",
|
|
6143
6140
|
"kubb.config.js",
|
|
6141
|
+
"kubb.config.mjs",
|
|
6144
6142
|
"kubb.config.cjs"
|
|
6145
6143
|
];
|
|
6146
6144
|
for (const configFileName of configFileNames) {
|
|
@@ -6250,7 +6248,6 @@ const generateTool = defineTool({
|
|
|
6250
6248
|
});
|
|
6251
6249
|
} catch (error) {
|
|
6252
6250
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
6253
|
-
await notify("CONFIG_ERROR", errorMessage);
|
|
6254
6251
|
return tool.error(errorMessage);
|
|
6255
6252
|
}
|
|
6256
6253
|
const config = {
|