@d3ara1n/pi-model-roles 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.ts +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3ara1n/pi-model-roles",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Model role configuration library for pi extensions — defines named model roles and resolves them to Model instances",
6
6
  "main": "src/index.ts",
package/src/config.ts CHANGED
@@ -26,9 +26,7 @@ function readSettingsFile(filePath: string): any {
26
26
  try {
27
27
  if (!fs.existsSync(filePath)) return {};
28
28
  const content = fs.readFileSync(filePath, "utf-8");
29
- // Strip JSONC comments
30
- const stripped = content.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
31
- return JSON.parse(stripped);
29
+ return JSON.parse(content);
32
30
  } catch {
33
31
  return {};
34
32
  }