atomsystem 0.1.23 → 0.1.25

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/cli/init.js +4 -1
  2. package/package.json +1 -1
package/cli/init.js CHANGED
@@ -20,6 +20,7 @@ const buildFile = path.join(packageRoot, "/build/build-tokens.js");
20
20
  // 프로젝트 루트 경로 (사용자가 실행한 곳)
21
21
  const projectRoot = process.cwd();
22
22
  const targetTokenFile = path.join(projectRoot, "token.json");
23
+ const targetBuildDir = path.join(projectRoot, "build");
23
24
  const targetBuildFile = path.join(projectRoot, "/build/build-tokens.js");
24
25
 
25
26
  // 사용자에게 Next.js 설치 여부 질문
@@ -99,8 +100,10 @@ inquirer
99
100
  // ✅ 토큰 파일 복사 (Next.js 설치 여부와 관계없이 실행)
100
101
  copyFileSync(tokenFile, targetTokenFile);
101
102
  console.log(`✅ Copied: token.json -> ${targetTokenFile}`);
103
+
104
+ if (!fs.existsSync(targetBuildDir)) mkdirSync(targetBuildDir);
102
105
  copyFileSync(buildFile, targetBuildFile);
103
- console.log(`✅ Copied: ${buildFile} -> ${targetTokenFile}`);
106
+ console.log(`✅ Copied: build-token.json -> ${targetTokenFile}`);
104
107
 
105
108
  console.log("🚀 Token setup complete!");
106
109
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atomsystem",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "homepage": "https://system.atomground.com",
6
6
  "bin": {