@getcoherent/core 0.5.3 → 0.5.5

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.5",
7
7
  "description": "Core design system engine for Coherent",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",
@@ -32,6 +32,12 @@
32
32
  ],
33
33
  "author": "Coherent Design Method",
34
34
  "license": "MIT",
35
+ "scripts": {
36
+ "dev": "tsup --watch",
37
+ "build": "tsup",
38
+ "typecheck": "tsc --noEmit",
39
+ "test": "vitest"
40
+ },
35
41
  "dependencies": {
36
42
  "handlebars": "^4.7.8",
37
43
  "zod": "^3.22.4"
@@ -41,11 +47,5 @@
41
47
  "tsup": "^8.0.1",
42
48
  "typescript": "^5.3.3",
43
49
  "vitest": "^1.2.1"
44
- },
45
- "scripts": {
46
- "dev": "tsup --watch",
47
- "build": "tsup",
48
- "typecheck": "tsc --noEmit",
49
- "test": "vitest"
50
50
  }
51
- }
51
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Sergei Kovtun
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.