@kya-os/mcp-i 1.5.9-canary.1 → 1.5.9-canary.11
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/295.js +1 -1
- package/dist/compiler/get-webpack-config/index.js +11 -2
- package/dist/index.js.LICENSE.txt +0 -6
- package/dist/runtime/adapter-express.js +1 -1
- package/dist/runtime/adapter-nextjs.js +1 -1
- package/dist/runtime/audit.d.ts +49 -0
- package/dist/runtime/audit.js +58 -0
- package/dist/runtime/http.js +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/stdio.js +1 -1
- package/package.json +10 -6
|
@@ -11,8 +11,8 @@ const compiler_context_1 = require("../compiler-context");
|
|
|
11
11
|
const get_entries_1 = require("./get-entries");
|
|
12
12
|
const get_injected_variables_1 = require("./get-injected-variables");
|
|
13
13
|
const resolve_tsconfig_paths_1 = require("./resolve-tsconfig-paths");
|
|
14
|
-
const clean_webpack_plugin_1 = require("clean-webpack-plugin");
|
|
15
14
|
const plugins_1 = require("./plugins");
|
|
15
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
16
16
|
const get_externals_1 = require("./get-externals");
|
|
17
17
|
/** Creates the webpack configuration that xmcp will use to bundle the user's code */
|
|
18
18
|
function getWebpackConfig(xmcpConfig) {
|
|
@@ -87,7 +87,16 @@ function getWebpackConfig(xmcpConfig) {
|
|
|
87
87
|
// add clean plugin
|
|
88
88
|
if (!xmcpConfig.experimental?.adapter) {
|
|
89
89
|
// not needed in adapter mode since it only outputs one file
|
|
90
|
-
|
|
90
|
+
// Simple cleanup plugin using fs-extra (replaces CleanWebpackPlugin)
|
|
91
|
+
config.plugins.push({
|
|
92
|
+
apply: (compiler) => {
|
|
93
|
+
compiler.hooks.beforeCompile.tap("CleanOutputPlugin", () => {
|
|
94
|
+
if (fs_extra_1.default.pathExistsSync(outputPath)) {
|
|
95
|
+
fs_extra_1.default.removeSync(outputPath);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
});
|
|
91
100
|
}
|
|
92
101
|
// add shebang to CLI output on stdio mode
|
|
93
102
|
if (xmcpConfig.stdio) {
|