create-mcp-use-app 2.0.8 → 2.0.9-canary.0
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.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1833,6 +1833,7 @@ async function copyTemplate(projectPath, template, versions, isDevelopment = fal
|
|
|
1833
1833
|
}
|
|
1834
1834
|
function copyDirectoryWithProcessing(src, dest, versions, isDevelopment) {
|
|
1835
1835
|
const entries = readdirSync3(src, { withFileTypes: true });
|
|
1836
|
+
mkdirSync(dest, { recursive: true });
|
|
1836
1837
|
for (const entry of entries) {
|
|
1837
1838
|
if (entry.name === ".git") {
|
|
1838
1839
|
continue;
|
|
@@ -1841,7 +1842,6 @@ function copyDirectoryWithProcessing(src, dest, versions, isDevelopment) {
|
|
|
1841
1842
|
const destName = entry.name === "gitignore" ? ".gitignore" : entry.name;
|
|
1842
1843
|
const destPath = join3(dest, destName);
|
|
1843
1844
|
if (entry.isDirectory()) {
|
|
1844
|
-
mkdirSync(destPath, { recursive: true });
|
|
1845
1845
|
copyDirectoryWithProcessing(srcPath, destPath, versions, isDevelopment);
|
|
1846
1846
|
} else if (entry.name === "package.json" || entry.name.endsWith(".json")) {
|
|
1847
1847
|
const processedContent = processTemplateFile(
|
|
@@ -2073,9 +2073,6 @@ async function main() {
|
|
|
2073
2073
|
mcpUseVersion = defaultVersion;
|
|
2074
2074
|
}
|
|
2075
2075
|
const versions = { "mcp-use": mcpUseVersion };
|
|
2076
|
-
if (!useCurrentDir) {
|
|
2077
|
-
mkdirSync(projectPath, { recursive: true });
|
|
2078
|
-
}
|
|
2079
2076
|
console.log(cyan(`\u{1F680} Creating MCP server "${displayName}"...`));
|
|
2080
2077
|
const validatedTemplate = validateTemplateName(selectedTemplate);
|
|
2081
2078
|
await copyTemplate(projectPath, validatedTemplate, versions, options.dev);
|