sonance-brand-mcp 1.3.37 → 1.3.38
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.
|
@@ -1438,8 +1438,11 @@ function getPathAliases(projectRoot: string): Map<string, string> {
|
|
|
1438
1438
|
if (fs.existsSync(tsconfigPath)) {
|
|
1439
1439
|
try {
|
|
1440
1440
|
const content = fs.readFileSync(tsconfigPath, "utf-8");
|
|
1441
|
-
// Remove comments (tsconfig allows them)
|
|
1442
|
-
const cleanContent = content
|
|
1441
|
+
// Remove comments (tsconfig allows them) and trailing commas (valid in tsconfig but not JSON)
|
|
1442
|
+
const cleanContent = content
|
|
1443
|
+
.replace(/\/\/.*$/gm, "")
|
|
1444
|
+
.replace(/\/\*[\s\S]*?\*\//g, "")
|
|
1445
|
+
.replace(/,\s*([\]}])/g, "$1");
|
|
1443
1446
|
const tsconfig = JSON.parse(cleanContent);
|
|
1444
1447
|
|
|
1445
1448
|
const paths = tsconfig.compilerOptions?.paths || {};
|
|
@@ -1348,8 +1348,11 @@ function getPathAliases(projectRoot: string): Map<string, string> {
|
|
|
1348
1348
|
if (fs.existsSync(tsconfigPath)) {
|
|
1349
1349
|
try {
|
|
1350
1350
|
const content = fs.readFileSync(tsconfigPath, "utf-8");
|
|
1351
|
-
// Remove comments (tsconfig allows them)
|
|
1352
|
-
const cleanContent = content
|
|
1351
|
+
// Remove comments (tsconfig allows them) and trailing commas (valid in tsconfig but not JSON)
|
|
1352
|
+
const cleanContent = content
|
|
1353
|
+
.replace(/\/\/.*$/gm, "")
|
|
1354
|
+
.replace(/\/\*[\s\S]*?\*\//g, "")
|
|
1355
|
+
.replace(/,\s*([\]}])/g, "$1");
|
|
1353
1356
|
const tsconfig = JSON.parse(cleanContent);
|
|
1354
1357
|
|
|
1355
1358
|
const paths = tsconfig.compilerOptions?.paths || {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonance-brand-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.38",
|
|
4
4
|
"description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|