cmx-sdk 0.2.3 → 0.2.4

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/dist/cli.js +1 -3
  2. package/package.json +2 -1
package/dist/cli.js CHANGED
@@ -2733,9 +2733,7 @@ export function ${pascalName}({ title, children }: ${pascalName}Props) {
2733
2733
  // src/commands/codegen-check.ts
2734
2734
  import { existsSync as existsSync4, readFileSync as readFileSync4, readdirSync as readdirSync2, statSync } from "fs";
2735
2735
  import { extname, join as join5, relative, resolve as resolve2 } from "path";
2736
- function stripJsonComments(input) {
2737
- return input.replace(/\/\*[\s\S]*?\*\//g, "").replace(/^\s*\/\/.*$/gm, "");
2738
- }
2736
+ import stripJsonComments from "strip-json-comments";
2739
2737
  function stripTrailingCommas(input) {
2740
2738
  return input.replace(/,\s*([}\]])/g, "$1");
2741
2739
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmx-sdk",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "CMX SDK - Official SDK for building content-driven websites with CMX",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,6 +48,7 @@
48
48
  "commander": "^12.1.0",
49
49
  "dotenv": "^16.4.0",
50
50
  "lucide-react": "^0.468.0",
51
+ "strip-json-comments": "^5.0.3",
51
52
  "tar": "^7.5.7",
52
53
  "zod": "^3.24.0"
53
54
  },