@gaonjs/cli 0.10.2 → 0.11.1

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.
@@ -145,16 +145,18 @@ async function runStep(step, cwd) {
145
145
  output,
146
146
  };
147
147
  }
148
- // build — 사용자 스크립트가 없으면 pnpm -r build 최선의 폴백으로 시도.
149
- const cmd = 'pnpm';
150
- const args = ['-r', 'run', 'build'];
151
- const { exitCode, output } = await runSubprocess(cwd, cmd, args);
148
+ // build — 사용자 `build` 스크립트가 있으면 hasScript 분기가 이미 처리한다.
149
+ // 여기에 도달했다는 건 build 스크립트가 없다는 뜻 — typecheck·vue-tsc 와
150
+ // 같은 관례로 스킵한다. 과거엔 폴백으로 `pnpm -r run build` 를 돌렸지만,
151
+ // gaon new 프로젝트는 build 스크립트가 없고 packages/ 비어 있어 항상
152
+ // ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT 로 실패했다(= 갓 만든 프로젝트에서
153
+ // gaon check 가 무조건 exit 1). 타입 정합은 typecheck·vue-tsc 가 이미
154
+ // 담보하므로, 빌드는 사용자가 명시적으로 정의했을 때만 검사한다.
152
155
  return {
153
156
  step,
154
- status: exitCode === 0 ? 'passed' : 'failed',
155
- command: `${cmd} ${args.join(' ')}`,
156
- exitCode,
157
- output,
157
+ status: 'skipped',
158
+ output: 'build 스크립트가 없어 건너뜁니다(.vue/타입 정합은 typecheck·vue-tsc 가 담보).\n' +
159
+ '→ 프론트 프로덕션 빌드를 검사에 포함하려면 package.json 에 "build": "vite build" 를 정의하세요.',
158
160
  };
159
161
  }
160
162
  /** doctor 는 이미 있는 명령을 재사용 — cwd 만 넘긴다. json 은 상위에서. */
@@ -21,6 +21,7 @@
21
21
  "vue": "^3.5.0"
22
22
  },
23
23
  "devDependencies": {
24
+ "@types/node": "^22.0.0",
24
25
  "@vitejs/plugin-vue": "^6.0.0",
25
26
  "typescript": "^5.9.0",
26
27
  "vite": "^7.0.0",
@@ -11,7 +11,7 @@
11
11
  "resolveJsonModule": true,
12
12
  "noEmit": true,
13
13
  "jsx": "preserve",
14
- "types": ["node"]
14
+ "types": ["node", "vite/client"]
15
15
  },
16
16
  "include": [
17
17
  "apps/**/*.ts",
@@ -19,7 +19,9 @@
19
19
  "domain/**/*.ts",
20
20
  "shared/**/*.ts",
21
21
  "shared/**/*.vue",
22
- "gaon.config.ts"
22
+ "gaon.config.ts",
23
+ ".gaon/**/*.d.ts",
24
+ "apps/*/.gaon/**/*.d.ts"
23
25
  ],
24
- "exclude": ["node_modules", "dist", ".gaon"]
26
+ "exclude": ["node_modules", "dist"]
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaonjs/cli",
3
- "version": "0.10.2",
3
+ "version": "0.11.1",
4
4
  "description": "Gaon CLI 구현: 제너레이터·스캐폴딩·로드맵 출력 (M1 스텁)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,12 +27,12 @@
27
27
  "@modelcontextprotocol/sdk": "^1.29.0",
28
28
  "typescript": "^5.9.0",
29
29
  "vite": "^7.0.0",
30
- "@gaonjs/async": "0.3.0",
30
+ "@gaonjs/config": "0.2.1",
31
31
  "@gaonjs/core": "0.1.4",
32
- "@gaonjs/data": "0.8.0",
33
- "@gaonjs/mail": "0.1.0",
34
- "@gaonjs/web": "0.5.0",
35
- "@gaonjs/config": "0.2.0"
32
+ "@gaonjs/async": "0.3.1",
33
+ "@gaonjs/web": "0.5.1",
34
+ "@gaonjs/data": "0.8.1",
35
+ "@gaonjs/mail": "0.1.1"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "node ../../node_modules/typescript/bin/tsc -p tsconfig.json && node -e \"require('fs').cpSync('src/templates','dist/templates',{recursive:true})\""