@nexus-cross/tokens 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/tokens",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TO-NEXUS Design Tokens - 디자인 시스템 토큰 라이브러리",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -48,7 +48,7 @@
48
48
  "build": "tsup src/index.ts --format cjs,esm --dts && node ../../scripts/generate-css.js",
49
49
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
50
50
  "lint": "eslint src/",
51
- "test": "echo 'No tests yet'",
51
+ "test": "vitest run",
52
52
  "type-check": "tsc --noEmit",
53
53
  "postinstall": "node scripts/postinstall.js"
54
54
  }
@@ -12,7 +12,7 @@ const path = require('path');
12
12
 
13
13
  const RULE_FILENAME = 'nexus-tokens.mdc';
14
14
  const FRONTMATTER = `---
15
- description: "NEXUS Design Token Reference — 색상, 타이포그래피, 간격 모든 디자인 토큰의 Tailwind 클래스와 CSS 변수"
15
+ description: "NEXUS Design Token Reference — Tailwind classes and CSS variables for colors, typography, spacing, and all design tokens"
16
16
  alwaysApply: true
17
17
  ---
18
18
 
@@ -4,7 +4,7 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
 
6
6
  const FRONTMATTER = `---
7
- description: "NEXUS Design Token Reference — 색상, 타이포그래피, 간격 모든 디자인 토큰의 Tailwind 클래스와 CSS 변수"
7
+ description: "NEXUS Design Token Reference — Tailwind classes and CSS variables for colors, typography, spacing, and all design tokens"
8
8
  alwaysApply: true
9
9
  ---
10
10
 
@@ -25,13 +25,13 @@ function findProjectRoot(startDir) {
25
25
  function run() {
26
26
  const projectRoot = findProjectRoot(process.cwd());
27
27
  if (!projectRoot) {
28
- console.log('[@nexus-cross/tokens] 프로젝트 루트를 찾을 없습니다.');
28
+ console.log('[@nexus-cross/tokens] Could not find project root.');
29
29
  return;
30
30
  }
31
31
 
32
32
  const tokensMd = path.join(projectRoot, 'node_modules', '@nexus-cross', 'tokens', 'dist', 'TOKENS.md');
33
33
  if (!fs.existsSync(tokensMd)) {
34
- console.log('[@nexus-cross/tokens] dist/TOKENS.md 찾을 수 없습니다.');
34
+ console.log('[@nexus-cross/tokens] dist/TOKENS.md not found.');
35
35
  return;
36
36
  }
37
37
 
@@ -44,9 +44,9 @@ function run() {
44
44
 
45
45
  if (!destExists || fs.readFileSync(dest, 'utf-8') !== content) {
46
46
  fs.writeFileSync(dest, content, 'utf-8');
47
- console.log(`[@nexus-cross/tokens] ${destExists ? '업데이트' : '설치'}: .cursor/rules/nexus-tokens.mdc`);
47
+ console.log(`[@nexus-cross/tokens] ${destExists ? 'updated' : 'installed'}: .cursor/rules/nexus-tokens.mdc`);
48
48
  } else {
49
- console.log('[@nexus-cross/tokens] Cursor rules 이미 최신 상태입니다.');
49
+ console.log('[@nexus-cross/tokens] Cursor rules are already up to date.');
50
50
  }
51
51
  }
52
52