create-mastra 0.10.3-alpha.0 → 0.10.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/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -432,8 +432,8 @@ function requireQuote () {
|
|
|
432
432
|
if (s && typeof s === 'object') {
|
|
433
433
|
return s.op.replace(/(.)/g, '\\$1');
|
|
434
434
|
}
|
|
435
|
-
if ((/["\s
|
|
436
|
-
return "'" + s.replace(/(['])/g, '\\$1') + "'";
|
|
435
|
+
if ((/["\s]/).test(s) && !(/'/).test(s)) {
|
|
436
|
+
return "'" + s.replace(/(['\\])/g, '\\$1') + "'";
|
|
437
437
|
}
|
|
438
438
|
if ((/["'\s]/).test(s)) {
|
|
439
439
|
return '"' + s.replace(/(["\\$`!])/g, '\\$1') + '"';
|
|
@@ -540,7 +540,7 @@ function requireParse () {
|
|
|
540
540
|
return matches.map(function (match) {
|
|
541
541
|
var s = match[0];
|
|
542
542
|
if (!s || commented) {
|
|
543
|
-
return void
|
|
543
|
+
return void undefined;
|
|
544
544
|
}
|
|
545
545
|
if (controlRE.test(s)) {
|
|
546
546
|
return { op: s };
|
|
@@ -1294,7 +1294,7 @@ function getPackageManagerInstallCommand(pm) {
|
|
|
1294
1294
|
return "install";
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
|
-
var args = ["-y", "@mastra/mcp-docs-server
|
|
1297
|
+
var args = ["-y", "@mastra/mcp-docs-server"];
|
|
1298
1298
|
var createMcpConfig = (editor) => {
|
|
1299
1299
|
if (editor === "vscode") {
|
|
1300
1300
|
return {
|
|
@@ -1313,10 +1313,7 @@ var createMcpConfig = (editor) => {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
return {
|
|
1315
1315
|
mcpServers: {
|
|
1316
|
-
mastra:
|
|
1317
|
-
command: "cmd",
|
|
1318
|
-
args: ["/c", "npx", ...args]
|
|
1319
|
-
} : {
|
|
1316
|
+
mastra: {
|
|
1320
1317
|
command: "npx",
|
|
1321
1318
|
args
|
|
1322
1319
|
}
|