@mcp-use/cli 2.6.0-canary.5 → 2.6.0-canary.6
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3437,10 +3437,13 @@ async function buildWidgets(projectPath) {
|
|
|
3437
3437
|
const tempDir = import_node_path5.default.join(projectPath, ".mcp-use", widgetName);
|
|
3438
3438
|
await fs9.mkdir(tempDir, { recursive: true });
|
|
3439
3439
|
const relativeResourcesPath = import_node_path5.default.relative(tempDir, resourcesDir).replace(/\\/g, "/");
|
|
3440
|
+
const mcpUsePath = import_node_path5.default.join(projectPath, "node_modules", "mcp-use");
|
|
3441
|
+
const relativeMcpUsePath = import_node_path5.default.relative(tempDir, mcpUsePath).replace(/\\/g, "/");
|
|
3440
3442
|
const cssContent = `@import "tailwindcss";
|
|
3441
3443
|
|
|
3442
|
-
/* Configure Tailwind to scan the resources directory */
|
|
3444
|
+
/* Configure Tailwind to scan the resources directory and mcp-use package */
|
|
3443
3445
|
@source "${relativeResourcesPath}";
|
|
3446
|
+
@source "${relativeMcpUsePath}/**/*.{ts,tsx,js,jsx}";
|
|
3444
3447
|
`;
|
|
3445
3448
|
await fs9.writeFile(import_node_path5.default.join(tempDir, "styles.css"), cssContent, "utf8");
|
|
3446
3449
|
const entryContent = `import React from 'react'
|