@getcoherent/core 0.5.3 → 0.5.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.
package/dist/index.d.ts CHANGED
@@ -4215,7 +4215,7 @@ declare const FRAMEWORK_VERSIONS: {
4215
4215
  readonly eslint: "9.17.0";
4216
4216
  readonly 'eslint-config-next': "15.2.4";
4217
4217
  };
4218
- declare const CLI_VERSION = "0.1.0";
4218
+ declare const CLI_VERSION: string;
4219
4219
 
4220
4220
  /**
4221
4221
  * Build CSS variables string for :root and .dark (design tokens).
package/dist/index.js CHANGED
@@ -6768,6 +6768,9 @@ async function integrateSharedLayoutIntoRootLayout(projectRoot) {
6768
6768
  }
6769
6769
 
6770
6770
  // src/versions.ts
6771
+ import { readFileSync } from "fs";
6772
+ import { resolve, dirname as dirname3 } from "path";
6773
+ import { fileURLToPath } from "url";
6771
6774
  var FRAMEWORK_VERSIONS = {
6772
6775
  next: "15.2.4",
6773
6776
  react: "18.3.1",
@@ -6782,11 +6785,21 @@ var FRAMEWORK_VERSIONS = {
6782
6785
  eslint: "9.17.0",
6783
6786
  "eslint-config-next": "15.2.4"
6784
6787
  };
6785
- var CLI_VERSION = "0.1.0";
6788
+ var __cdm_dirname = dirname3(fileURLToPath(import.meta.url));
6789
+ function readCliVersion() {
6790
+ try {
6791
+ const pkgPath = resolve(__cdm_dirname, "..", "package.json");
6792
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
6793
+ return pkg.version || "0.0.0";
6794
+ } catch {
6795
+ return "0.0.0";
6796
+ }
6797
+ }
6798
+ var CLI_VERSION = readCliVersion();
6786
6799
 
6787
6800
  // src/generators/ProjectScaffolder.ts
6788
6801
  import { writeFile as fsWriteFile, mkdir as mkdir3 } from "fs/promises";
6789
- import { dirname as dirname3, join as join4 } from "path";
6802
+ import { dirname as dirname4, join as join4 } from "path";
6790
6803
  import { existsSync as existsSync3, rmSync } from "fs";
6791
6804
  var ProjectScaffolder = class _ProjectScaffolder {
6792
6805
  config;
@@ -7601,7 +7614,7 @@ Recommendations are added here when you use \`coherent chat\` and the AI suggest
7601
7614
  */
7602
7615
  async writeFile(relativePath, content) {
7603
7616
  const fullPath = join4(this.projectRoot, relativePath);
7604
- const dir = dirname3(fullPath);
7617
+ const dir = dirname4(fullPath);
7605
7618
  if (!existsSync3(dir)) {
7606
7619
  await mkdir3(dir, { recursive: true });
7607
7620
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.3",
6
+ "version": "0.5.4",
7
7
  "description": "Core design system engine for Coherent",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",