@kurly-growth/growthman 0.1.18 → 0.1.19

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/bin/cli.js +12 -16
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -35,26 +35,22 @@ if (installedVersion !== currentVersion) {
35
35
  }
36
36
  fs.mkdirSync(appDir, { recursive: true });
37
37
 
38
- // 필요한 파일들 복사
39
- const filesToCopy = [
40
- 'app',
41
- 'components',
42
- 'lib',
43
- 'prisma',
44
- 'public',
45
- 'types',
46
- 'next.config.ts',
47
- 'tsconfig.json',
48
- 'postcss.config.mjs',
49
- 'package.json',
38
+ // 제외할 파일/폴더 (나머지는 모두 복사)
39
+ const excludes = [
40
+ 'node_modules',
41
+ '.next',
42
+ '.git',
43
+ '.env',
44
+ '.env.local',
45
+ 'generated',
46
+ '.DS_Store',
50
47
  ];
51
48
 
52
- for (const file of filesToCopy) {
49
+ for (const file of fs.readdirSync(packageDir)) {
50
+ if (excludes.includes(file)) continue;
53
51
  const src = path.join(packageDir, file);
54
52
  const dest = path.join(appDir, file);
55
- if (fs.existsSync(src)) {
56
- copyRecursive(src, dest);
57
- }
53
+ copyRecursive(src, dest);
58
54
  }
59
55
 
60
56
  // 버전 파일 생성
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kurly-growth/growthman",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Local mock API server with UI dashboard",
5
5
  "bin": {
6
6
  "growthman": "./bin/cli.js"