atomsystem 0.1.23 → 0.1.24
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/cli/init.js +3 -0
- 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,6 +100,8 @@ 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
106
|
console.log(`✅ Copied: ${buildFile} -> ${targetTokenFile}`);
|
|
104
107
|
|