@donotdev/cli 0.0.13 → 0.0.15
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/dependencies-matrix.json +357 -89
- package/dist/bin/commands/agent-setup.d.ts +6 -0
- package/dist/bin/commands/agent-setup.d.ts.map +1 -0
- package/dist/bin/commands/agent-setup.js +629 -0
- package/dist/bin/commands/agent-setup.js.map +1 -0
- package/dist/bin/commands/build.js +131 -50
- package/dist/bin/commands/bump.js +137 -49
- package/dist/bin/commands/cacheout.js +50 -21
- package/dist/bin/commands/create-app.js +270 -261
- package/dist/bin/commands/create-project.js +418 -197
- package/dist/bin/commands/deploy.js +1752 -712
- package/dist/bin/commands/dev.js +151 -35
- package/dist/bin/commands/emu.js +228 -70
- package/dist/bin/commands/format.js +50 -21
- package/dist/bin/commands/lint.js +50 -21
- package/dist/bin/commands/preview.js +155 -35
- package/dist/bin/commands/supabase-setup.d.ts +6 -0
- package/dist/bin/commands/supabase-setup.d.ts.map +1 -0
- package/dist/bin/commands/supabase-setup.js +7 -0
- package/dist/bin/commands/supabase-setup.js.map +1 -0
- package/dist/bin/commands/sync-secrets.js +224 -46
- package/dist/bin/commands/type-check.d.ts +14 -0
- package/dist/bin/commands/type-check.d.ts.map +1 -0
- package/dist/bin/commands/type-check.js +314 -0
- package/dist/bin/commands/type-check.js.map +1 -0
- package/dist/bin/commands/wai.js +7399 -11
- package/dist/bin/dndev.js +27 -2
- package/dist/bin/donotdev.js +27 -2
- package/dist/index.js +3960 -2996
- package/package.json +2 -2
- package/templates/app-demo/src/App.tsx.example +1 -0
- package/templates/app-demo/src/pages/FullPage.tsx.example +2 -2
- package/templates/app-demo/src/pages/components/DemoLayout.tsx.example +2 -2
- package/templates/app-demo/src/themes.css.example +5 -12
- package/templates/app-expo/.env.example +64 -0
- package/templates/app-expo/.expo/README.md.example +5 -0
- package/templates/app-expo/.gitignore.example +36 -0
- package/templates/app-expo/README.md.example +58 -0
- package/templates/app-expo/app/.gitkeep +2 -0
- package/templates/app-expo/app/_layout.tsx.example +41 -0
- package/templates/app-expo/app/form.tsx.example +52 -0
- package/templates/app-expo/app/index.tsx.example +89 -0
- package/templates/app-expo/app/list.tsx.example +32 -0
- package/templates/app-expo/app/profile.tsx.example +76 -0
- package/templates/app-expo/app/signin.tsx.example +53 -0
- package/templates/app-expo/app.json.example +39 -0
- package/templates/app-expo/babel.config.js.example +10 -0
- package/templates/app-expo/eas.json.example +20 -0
- package/templates/app-expo/expo-env.d.ts.example +4 -0
- package/templates/app-expo/metro.config.js.example +20 -0
- package/templates/app-expo/service-account-key.json.example +12 -0
- package/templates/app-expo/tsconfig.json.example +19 -0
- package/templates/app-next/.env.example +4 -33
- package/templates/app-next/src/app/ClientLayout.tsx.example +2 -0
- package/templates/app-next/src/app/layout.tsx.example +7 -6
- package/templates/app-next/src/globals.css.example +2 -11
- package/templates/app-next/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-next/src/themes.css.example +10 -13
- package/templates/app-vite/.env.example +3 -32
- package/templates/app-vite/index.html.example +2 -24
- package/templates/app-vite/src/App.tsx.example +2 -0
- package/templates/app-vite/src/globals.css.example +2 -12
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +1 -2
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/themes.css.example +109 -79
- package/templates/app-vite/vercel.json.example +11 -0
- package/templates/functions-firebase/build.mjs.example +2 -72
- package/templates/functions-firebase/functions-firebase/.env.example.example +23 -25
- package/templates/functions-firebase/functions-firebase/build.mjs.example +2 -72
- package/templates/functions-firebase/functions-firebase/tsconfig.json.example +1 -1
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +11 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +11 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +16 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +24 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +22 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +28 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +28 -0
- package/templates/functions-vercel/functions-vercel/tsconfig.json.example +1 -1
- package/templates/functions-vercel/functions-vercel/vercel.json.example +1 -1
- package/templates/functions-vercel/vercel.json.example +1 -1
- package/templates/github/github/workflows/firebase-deploy.yml.example +1 -1
- package/templates/github/workflows/firebase-deploy.yml.example +1 -1
- package/templates/overlay-firebase/env.fragment.example +34 -0
- package/templates/overlay-firebase/env.fragment.expo.example +34 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +34 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +49 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +23 -0
- package/templates/overlay-supabase/env.fragment.example +7 -0
- package/templates/overlay-supabase/env.fragment.expo.example +7 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +7 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +35 -0
- package/templates/overlay-supabase/src/config/providers.ts.example +33 -0
- package/templates/overlay-supabase/vercel.headers.example +23 -0
- package/templates/overlay-supabase/vercel.json.example +22 -0
- package/templates/overlay-vercel/env.fragment.example +34 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +34 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +24 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +2 -310
- package/templates/root-consumer/.claude/agents/builder.md.example +2 -326
- package/templates/root-consumer/.claude/agents/coder.md.example +2 -83
- package/templates/root-consumer/.claude/agents/extractor.md.example +2 -231
- package/templates/root-consumer/.claude/agents/polisher.md.example +2 -132
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +2 -81
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +1 -1
- package/templates/root-consumer/.claude/commands/build.md.example +1 -1
- package/templates/root-consumer/.claude/commands/design.md.example +1 -1
- package/templates/root-consumer/.claude/commands/grill.md.example +30 -0
- package/templates/root-consumer/.claude/commands/polish.md.example +1 -1
- package/templates/root-consumer/.claude/commands/techdebt.md.example +28 -0
- package/templates/root-consumer/.clinerules.example +1 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +15 -0
- package/templates/root-consumer/.cursorrules.example +1 -0
- package/templates/root-consumer/.dndev/args.json.example +6 -0
- package/templates/root-consumer/.gemini/settings.json.example +2 -2
- package/templates/root-consumer/.github/copilot-instructions.md.example +1 -0
- package/templates/root-consumer/.windsurfrules.example +1 -0
- package/templates/root-consumer/AI.md.example +25 -108
- package/templates/root-consumer/CLAUDE.md.example +1 -128
- package/templates/root-consumer/CONVENTIONS.md.example +1 -0
- package/templates/root-consumer/GEMINI.md.example +1 -0
- package/templates/root-consumer/firebase.json.example +1 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +54 -0
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -18
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +1 -1
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +99 -30
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +186 -0
- package/templates/root-consumer/guides/dndev/INDEX.md.example +4 -1
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +143 -12
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +9 -3
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +12 -7
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +234 -0
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +124 -0
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +6 -2
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +176 -0
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +5 -9
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +174 -0
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +10 -0
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +25 -5
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +13 -2
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +2 -2
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +47 -11
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +15 -4
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +7 -6
- package/templates/app-payload/.env.example +0 -28
- package/templates/app-payload/README.md.example +0 -233
- package/templates/app-payload/collections/Company.ts.example +0 -125
- package/templates/app-payload/collections/Hero.ts.example +0 -62
- package/templates/app-payload/collections/Media.ts.example +0 -41
- package/templates/app-payload/collections/Products.ts.example +0 -115
- package/templates/app-payload/collections/Services.ts.example +0 -104
- package/templates/app-payload/collections/Testimonials.ts.example +0 -92
- package/templates/app-payload/collections/Users.ts.example +0 -35
- package/templates/app-payload/src/server.ts.example +0 -79
- package/templates/app-payload/tsconfig.json.example +0 -24
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
// packages/cli/src/bin/commands/type-check.ts
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview dndev tc — TypeScript type-check for consumer projects
|
|
4
|
+
* Discovers packages with a `type-check` script and runs them.
|
|
5
|
+
* Agent-friendly: plain structured output when not a TTY.
|
|
6
|
+
*
|
|
7
|
+
* @version 0.0.1
|
|
8
|
+
* @since 0.0.1
|
|
9
|
+
* @author AMBROISE PARK Consulting
|
|
10
|
+
*/
|
|
11
|
+
import { spawn } from 'node:child_process';
|
|
12
|
+
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
|
|
13
|
+
import { join } from 'node:path';
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
// Package manager detection
|
|
16
|
+
// ---------------------------------------------------------------------------
|
|
17
|
+
/**
|
|
18
|
+
* Detect package manager from lockfile in a directory.
|
|
19
|
+
* Walks up to find the nearest lockfile.
|
|
20
|
+
*/
|
|
21
|
+
function detectPackageManager(dir) {
|
|
22
|
+
let current = dir;
|
|
23
|
+
for (let i = 0; i < 10; i++) {
|
|
24
|
+
if (existsSync(join(current, 'bun.lockb')))
|
|
25
|
+
return 'bun';
|
|
26
|
+
if (existsSync(join(current, 'yarn.lock')))
|
|
27
|
+
return 'yarn';
|
|
28
|
+
if (existsSync(join(current, 'pnpm-lock.yaml')))
|
|
29
|
+
return 'pnpm';
|
|
30
|
+
if (existsSync(join(current, 'package-lock.json')))
|
|
31
|
+
return 'npm';
|
|
32
|
+
const parent = join(current, '..');
|
|
33
|
+
if (parent === current)
|
|
34
|
+
break;
|
|
35
|
+
current = parent;
|
|
36
|
+
}
|
|
37
|
+
return 'bun'; // default
|
|
38
|
+
}
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
// Package discovery
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
const SKIP_DIRS = new Set([
|
|
43
|
+
'node_modules',
|
|
44
|
+
'dist',
|
|
45
|
+
'.next',
|
|
46
|
+
'.turbo',
|
|
47
|
+
'build',
|
|
48
|
+
'coverage',
|
|
49
|
+
'.git',
|
|
50
|
+
'.bun',
|
|
51
|
+
]);
|
|
52
|
+
/**
|
|
53
|
+
* Find all package.json files recursively from a root directory,
|
|
54
|
+
* skipping common non-source directories.
|
|
55
|
+
*/
|
|
56
|
+
function findPackageJsonFiles(rootDir) {
|
|
57
|
+
const results = [];
|
|
58
|
+
function walk(dir) {
|
|
59
|
+
let entries;
|
|
60
|
+
try {
|
|
61
|
+
entries = readdirSync(dir);
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
for (const entry of entries) {
|
|
67
|
+
if (SKIP_DIRS.has(entry))
|
|
68
|
+
continue;
|
|
69
|
+
const fullPath = join(dir, entry);
|
|
70
|
+
try {
|
|
71
|
+
const stat = statSync(fullPath);
|
|
72
|
+
if (stat.isDirectory()) {
|
|
73
|
+
walk(fullPath);
|
|
74
|
+
}
|
|
75
|
+
else if (entry === 'package.json') {
|
|
76
|
+
results.push(fullPath);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
// skip inaccessible
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
walk(rootDir);
|
|
85
|
+
return results;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Discover packages with a `type-check` script in cwd.
|
|
89
|
+
* Optionally filtered to packages whose path or name includes `filter`.
|
|
90
|
+
*/
|
|
91
|
+
function discoverPackages(cwd, filter) {
|
|
92
|
+
const packageFiles = findPackageJsonFiles(cwd);
|
|
93
|
+
const packages = [];
|
|
94
|
+
for (const pkgFile of packageFiles) {
|
|
95
|
+
try {
|
|
96
|
+
// Read synchronously — we're in a CLI
|
|
97
|
+
const raw = readFileSync(pkgFile, 'utf-8');
|
|
98
|
+
const json = JSON.parse(raw);
|
|
99
|
+
const name = typeof json.name === 'string' ? json.name : undefined;
|
|
100
|
+
const scripts = (json.scripts ?? {});
|
|
101
|
+
if (!scripts['type-check'])
|
|
102
|
+
continue;
|
|
103
|
+
const pkgDir = join(pkgFile, '..');
|
|
104
|
+
// Compute relative path from cwd
|
|
105
|
+
const relativePath = pkgDir === cwd
|
|
106
|
+
? '.'
|
|
107
|
+
: pkgDir.startsWith(cwd + '/')
|
|
108
|
+
? pkgDir.slice(cwd.length + 1)
|
|
109
|
+
: pkgDir;
|
|
110
|
+
if (filter) {
|
|
111
|
+
const filterLower = filter.toLowerCase();
|
|
112
|
+
const nameLower = (name ?? '').toLowerCase();
|
|
113
|
+
const relLower = relativePath.toLowerCase();
|
|
114
|
+
if (!nameLower.includes(filterLower) && !relLower.includes(filterLower)) {
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
packages.push({
|
|
119
|
+
name: name ?? relativePath,
|
|
120
|
+
path: pkgDir,
|
|
121
|
+
relativePath,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return packages.sort((a, b) => a.name.localeCompare(b.name));
|
|
129
|
+
}
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// TypeScript error parsing
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
/**
|
|
134
|
+
* Parse TypeScript errors from tsc output.
|
|
135
|
+
* Returns lines matching `error TS####` format.
|
|
136
|
+
*/
|
|
137
|
+
function parseTypeScriptErrors(output) {
|
|
138
|
+
const lines = output.split('\n');
|
|
139
|
+
const errorLines = [];
|
|
140
|
+
const errorPattern = /error TS\d+/;
|
|
141
|
+
let errorCount = 0;
|
|
142
|
+
for (let i = 0; i < lines.length; i++) {
|
|
143
|
+
const line = lines[i];
|
|
144
|
+
if (!line)
|
|
145
|
+
continue;
|
|
146
|
+
if (errorPattern.test(line)) {
|
|
147
|
+
errorCount++;
|
|
148
|
+
errorLines.push(line.trim());
|
|
149
|
+
// Include indented continuation line if present
|
|
150
|
+
if (i + 1 < lines.length) {
|
|
151
|
+
const next = lines[i + 1];
|
|
152
|
+
if (next && /^\s+/.test(next)) {
|
|
153
|
+
errorLines.push(next.trimEnd());
|
|
154
|
+
i++;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return { errorCount, errorLines };
|
|
160
|
+
}
|
|
161
|
+
// ---------------------------------------------------------------------------
|
|
162
|
+
// Per-package type-check runner
|
|
163
|
+
// ---------------------------------------------------------------------------
|
|
164
|
+
/**
|
|
165
|
+
* Run `bun run type-check` (or appropriate package manager) in a package dir.
|
|
166
|
+
*/
|
|
167
|
+
function runTypeCheckInPackage(pkg, pm) {
|
|
168
|
+
return new Promise((resolve) => {
|
|
169
|
+
let stdout = '';
|
|
170
|
+
let stderr = '';
|
|
171
|
+
const [cmd, ...cmdArgs] = pm === 'bun'
|
|
172
|
+
? ['bun', 'run', 'type-check']
|
|
173
|
+
: pm === 'yarn'
|
|
174
|
+
? ['yarn', 'run', 'type-check']
|
|
175
|
+
: pm === 'pnpm'
|
|
176
|
+
? ['pnpm', 'run', 'type-check']
|
|
177
|
+
: ['npm', 'run', 'type-check'];
|
|
178
|
+
const child = spawn(cmd, cmdArgs, {
|
|
179
|
+
cwd: pkg.path,
|
|
180
|
+
stdio: 'pipe',
|
|
181
|
+
shell: true,
|
|
182
|
+
});
|
|
183
|
+
child.stdout?.on('data', (data) => {
|
|
184
|
+
stdout += data.toString('utf8');
|
|
185
|
+
});
|
|
186
|
+
child.stderr?.on('data', (data) => {
|
|
187
|
+
stderr += data.toString('utf8');
|
|
188
|
+
});
|
|
189
|
+
child.on('close', (code) => {
|
|
190
|
+
const allOutput = stdout + (stderr ? '\n' + stderr : '');
|
|
191
|
+
const { errorCount, errorLines } = parseTypeScriptErrors(allOutput);
|
|
192
|
+
resolve({
|
|
193
|
+
success: code === 0,
|
|
194
|
+
output: allOutput,
|
|
195
|
+
errors: errorLines,
|
|
196
|
+
errorCount,
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
child.on('error', (err) => {
|
|
200
|
+
const msg = `Failed to run type-check: ${err.message}`;
|
|
201
|
+
resolve({
|
|
202
|
+
success: false,
|
|
203
|
+
output: msg,
|
|
204
|
+
errors: [msg],
|
|
205
|
+
errorCount: 1,
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
// ---------------------------------------------------------------------------
|
|
211
|
+
// TTY spinner (clack) — only imported when running in TTY
|
|
212
|
+
// ---------------------------------------------------------------------------
|
|
213
|
+
async function runWithSpinner(pkg, pm) {
|
|
214
|
+
// Dynamic import to avoid side effects when not needed
|
|
215
|
+
const { spinner } = await import('@clack/prompts');
|
|
216
|
+
const s = spinner();
|
|
217
|
+
s.start(`Type-checking ${pkg.name} (${pkg.relativePath})...`);
|
|
218
|
+
const result = await runTypeCheckInPackage(pkg, pm);
|
|
219
|
+
if (result.success) {
|
|
220
|
+
s.stop(`${pkg.name} — No errors`);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
s.stop(`${pkg.name} — ${result.errorCount} error(s)`);
|
|
224
|
+
}
|
|
225
|
+
return result;
|
|
226
|
+
}
|
|
227
|
+
// ---------------------------------------------------------------------------
|
|
228
|
+
// Main entry point
|
|
229
|
+
// ---------------------------------------------------------------------------
|
|
230
|
+
/**
|
|
231
|
+
* Type-check all packages with a `type-check` script in the consumer project.
|
|
232
|
+
*
|
|
233
|
+
* @param options - Command options
|
|
234
|
+
* @returns Exit code: 0 = all pass, 1 = any failure
|
|
235
|
+
*/
|
|
236
|
+
export async function main(options = {}) {
|
|
237
|
+
const cwd = process.cwd();
|
|
238
|
+
const isTTY = process.stdout.isTTY;
|
|
239
|
+
const packages = discoverPackages(cwd, options.app);
|
|
240
|
+
if (packages.length === 0) {
|
|
241
|
+
if (isTTY) {
|
|
242
|
+
console.log('No packages with a type-check script found.');
|
|
243
|
+
if (options.app) {
|
|
244
|
+
console.log(` Filter: ${options.app}`);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
console.log('RESULT: 0 passed, 0 failed, 0 total errors');
|
|
249
|
+
}
|
|
250
|
+
return 0;
|
|
251
|
+
}
|
|
252
|
+
const pm = detectPackageManager(cwd);
|
|
253
|
+
let passed = 0;
|
|
254
|
+
let failed = 0;
|
|
255
|
+
let totalErrors = 0;
|
|
256
|
+
if (isTTY) {
|
|
257
|
+
// TTY mode: spinner per package + summary
|
|
258
|
+
const { intro, outro } = await import('@clack/prompts');
|
|
259
|
+
intro('dndev tc — TypeScript type-check');
|
|
260
|
+
const failedPackages = [];
|
|
261
|
+
for (const pkg of packages) {
|
|
262
|
+
const result = await runWithSpinner(pkg, pm);
|
|
263
|
+
if (result.success) {
|
|
264
|
+
passed++;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
failed++;
|
|
268
|
+
totalErrors += result.errorCount;
|
|
269
|
+
failedPackages.push({ pkg, result });
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (failedPackages.length > 0 && options.verbose) {
|
|
273
|
+
const { log } = await import('@clack/prompts');
|
|
274
|
+
for (const { pkg, result } of failedPackages) {
|
|
275
|
+
log.error(`\n${pkg.name} (${pkg.relativePath}) — ${result.errorCount} error(s):`);
|
|
276
|
+
for (const line of result.errors) {
|
|
277
|
+
log.error(` ${line}`);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
else if (failedPackages.length > 0) {
|
|
282
|
+
const { log } = await import('@clack/prompts');
|
|
283
|
+
log.info('Run with --verbose to see detailed error messages');
|
|
284
|
+
}
|
|
285
|
+
if (failed === 0) {
|
|
286
|
+
outro(`All ${passed} package(s) passed type-check`);
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
outro(`${passed} passed, ${failed} failed, ${totalErrors} total error(s)`);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
// Non-TTY (agent) mode: structured plain text
|
|
294
|
+
for (const pkg of packages) {
|
|
295
|
+
console.log(`CHECKING ${pkg.name} (${pkg.relativePath})`);
|
|
296
|
+
const result = await runTypeCheckInPackage(pkg, pm);
|
|
297
|
+
if (result.success) {
|
|
298
|
+
console.log(`PASS ${pkg.name}`);
|
|
299
|
+
passed++;
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
console.log(`FAIL ${pkg.name}: ${result.errorCount} error(s)`);
|
|
303
|
+
for (const line of result.errors) {
|
|
304
|
+
console.log(` ${line}`);
|
|
305
|
+
}
|
|
306
|
+
failed++;
|
|
307
|
+
totalErrors += result.errorCount;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
console.log(`RESULT: ${passed} passed, ${failed} failed, ${totalErrors} total errors`);
|
|
311
|
+
}
|
|
312
|
+
return failed > 0 ? 1 : 0;
|
|
313
|
+
}
|
|
314
|
+
//# sourceMappingURL=type-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-check.js","sourceRoot":"","sources":["../../../src/bin/commands/type-check.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAsBjC,8EAA8E;AAC9E,4BAA4B;AAC5B,8EAA8E;AAE9E;;;GAGG;AACH,SAAS,oBAAoB,CAAC,GAAW;IACvC,IAAI,OAAO,GAAG,GAAG,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5B,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QACzD,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAAE,OAAO,MAAM,CAAC;QAC1D,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;YAAE,OAAO,MAAM,CAAC;QAC/D,IAAI,U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