@donotdev/cli 0.3.0 → 0.3.2
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 +51 -27
- package/dist/bin/commands/agent-setup.js +28 -18
- package/dist/bin/commands/build.js +1086 -58
- package/dist/bin/commands/bump.js +337 -53
- package/dist/bin/commands/cacheout.js +28 -18
- package/dist/bin/commands/coach.js +33 -25
- package/dist/bin/commands/create-app.js +597 -244
- package/dist/bin/commands/create-project.js +607 -254
- package/dist/bin/commands/db-check.js +37 -28
- package/dist/bin/commands/db.js +37 -28
- package/dist/bin/commands/deploy.js +13758 -11807
- package/dist/bin/commands/dev.js +50 -34
- package/dist/bin/commands/doctor.js +33 -25
- package/dist/bin/commands/emu.js +65 -43
- package/dist/bin/commands/format.js +28 -18
- package/dist/bin/commands/get-demo.js +81 -46
- package/dist/bin/commands/make-admin.js +966 -896
- package/dist/bin/commands/preview.js +50 -34
- package/dist/bin/commands/seed.js +37 -28
- package/dist/bin/commands/setup-cicd.js +1286 -87
- package/dist/bin/commands/setup.js +152 -138
- package/dist/bin/commands/staging.js +13758 -11807
- package/dist/bin/commands/sync-secrets.js +152 -132
- package/dist/bin/commands/type-check.js +1086 -39
- package/dist/bin/commands/wai.js +28 -18
- package/dist/bin/dndev.js +513 -30
- package/dist/bin/donotdev.js +33 -8
- package/dist/index.js +14568 -12497
- package/package.json +1 -1
- package/templates/app-demo/index.html.example +0 -1
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +2 -2
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +1 -0
- package/templates/app-demo/tsconfig.json.example +1 -1
- package/templates/app-dndev/index.html.example +1 -3
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/app-expo/app/_layout.tsx.example +1 -1
- package/templates/app-expo/app/form.tsx.example +10 -3
- package/templates/app-expo/app/index.tsx.example +3 -3
- package/templates/app-expo/app/list.tsx.example +2 -2
- package/templates/app-expo/app/profile.tsx.example +4 -3
- package/templates/app-expo/app/signin.tsx.example +2 -2
- package/templates/app-expo/babel.config.js.example +23 -6
- package/templates/app-expo/metro.config.js.example +7 -17
- package/templates/app-expo/tsconfig.json.example +2 -1
- package/templates/app-next/src/app/AppDocument.tsx.example +2 -3
- package/templates/app-vite/index.html.example +1 -3
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +1 -1
- package/templates/app-vite/src/pages/HomePage.tsx.example +3 -3
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/deploy-config/firebase.json.example +6 -5
- package/templates/deploy-config/tsconfig.functions.json.example +2 -7
- package/templates/deploy-config/vercel.json.example +6 -420
- package/templates/functions-firebase/README.md.example +8 -8
- package/templates/functions-firebase/functions.config.js.example +2 -1
- package/templates/functions-firebase/src/index.ts.example +4 -3
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +8 -6
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +8 -6
- package/templates/functions-firebase/tsconfig.json.example +3 -5
- package/templates/functions-supabase/supabase/config.toml.example +2 -1
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/stripe-webhook/index.ts.example +2 -3
- package/templates/functions-vercel/README.md.example +15 -25
- package/templates/functions-vercel/build.mjs.example +4 -46
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +6 -11
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +2 -3
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/tsconfig.json.example +5 -6
- package/templates/github/workflows/firebase-deploy.yml.example +1 -1
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +3 -2
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +13 -12
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +5 -5
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +13 -12
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +5 -5
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +1 -4
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +10 -12
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +7 -4
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +11 -9
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +13 -7
- package/templates/preset-landing/src/pages/HomePage.tsx.example +50 -32
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +1 -1
- package/templates/preset-saas/src/pages/HomePage.tsx.example +3 -2
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +4 -3
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +7 -7
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +3 -3
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +101 -10
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +2 -2
- package/templates/root-consumer/.claude/rules/framework.md.example +1 -1
- package/templates/root-consumer/.claude/settings.json.example +0 -11
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +1 -1
- package/templates/root-consumer/.dndev/args.json.example +2 -2
- package/templates/root-consumer/.env.example +1 -1
- package/templates/root-consumer/.gitignore.example +2 -0
- package/templates/root-consumer/AGENTS.md.example +3 -3
- package/templates/root-consumer/README.md.example +1 -1
- package/templates/app-vite/csp.example.json +0 -44
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -20
- package/templates/functions-vercel/vercel.json.example +0 -14
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -18
|
@@ -799,9 +799,9 @@ function supportsColor() {
|
|
|
799
799
|
}
|
|
800
800
|
return process.stdout.isTTY === true;
|
|
801
801
|
}
|
|
802
|
-
function colorize(
|
|
803
|
-
if (!supportsColor()) return
|
|
804
|
-
return `${color}${
|
|
802
|
+
function colorize(text2, color) {
|
|
803
|
+
if (!supportsColor()) return text2;
|
|
804
|
+
return `${color}${text2}${colors.reset}`;
|
|
805
805
|
}
|
|
806
806
|
function stringify(value) {
|
|
807
807
|
if (typeof value === "string") return value;
|
|
@@ -4828,7 +4828,7 @@ var require_tasks = __commonJS({
|
|
|
4828
4828
|
}
|
|
4829
4829
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
4830
4830
|
function groupPatternsByBaseDirectory(patterns) {
|
|
4831
|
-
const
|
|
4831
|
+
const group2 = {};
|
|
4832
4832
|
return patterns.reduce((collection, pattern) => {
|
|
4833
4833
|
const base = utils.pattern.getBaseDirectory(pattern);
|
|
4834
4834
|
if (base in collection) {
|
|
@@ -4837,7 +4837,7 @@ var require_tasks = __commonJS({
|
|
|
4837
4837
|
collection[base] = [pattern];
|
|
4838
4838
|
}
|
|
4839
4839
|
return collection;
|
|
4840
|
-
},
|
|
4840
|
+
}, group2);
|
|
4841
4841
|
}
|
|
4842
4842
|
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
4843
4843
|
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
@@ -6941,11 +6941,12 @@ function getPatternsFor(type, repoRoot = null) {
|
|
|
6941
6941
|
function getGlobOptionsFor(type) {
|
|
6942
6942
|
return GLOB_OPTIONS[type] || GLOB_OPTIONS.base;
|
|
6943
6943
|
}
|
|
6944
|
-
var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
6944
|
+
var DEFAULT_OG_IMAGE, I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
6945
6945
|
var init_constants = __esm({
|
|
6946
6946
|
"packages/core/config/constants.js"() {
|
|
6947
6947
|
"use strict";
|
|
6948
6948
|
init_utils2();
|
|
6949
|
+
DEFAULT_OG_IMAGE = "/og-image.png";
|
|
6949
6950
|
I18N_PATHS = {
|
|
6950
6951
|
// Monorepo source structure (locales at root, not in src/)
|
|
6951
6952
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -6956,7 +6957,9 @@ var init_constants = __esm({
|
|
|
6956
6957
|
PUBLISHED_ROOT: "i18n",
|
|
6957
6958
|
PUBLISHED_LOCALES: "i18n/locales",
|
|
6958
6959
|
PUBLISHED_EAGER: "i18n/locales/eager",
|
|
6959
|
-
PUBLISHED_LAZY: "i18n/locales/lazy"
|
|
6960
|
+
PUBLISHED_LAZY: "i18n/locales/lazy",
|
|
6961
|
+
// Flag artwork: one SVG per flag code (flagFileName), copied to public/flags/ (AssetDiscovery)
|
|
6962
|
+
PUBLISHED_FLAGS: "i18n/flags"
|
|
6960
6963
|
};
|
|
6961
6964
|
SCAN_PATTERNS = {
|
|
6962
6965
|
routes: {
|
|
@@ -7018,7 +7021,12 @@ var init_constants = __esm({
|
|
|
7018
7021
|
"logo.avif",
|
|
7019
7022
|
"apple-touch-icon*.png",
|
|
7020
7023
|
"android-chrome-*.png",
|
|
7021
|
-
|
|
7024
|
+
// Generated from logo.svg (AssetDiscovery._generateMissingAssets) or the app's own
|
|
7025
|
+
"icon-*x*.png",
|
|
7026
|
+
DEFAULT_OG_IMAGE.slice(1)
|
|
7027
|
+
// Not manifest.json: the web app manifest is a build output on Next (the PWA step
|
|
7028
|
+
// rewrites it after this scan), so its scanned size would differ between a clean
|
|
7029
|
+
// build and a rebuild. The asset manifest's `manifest` reads it from disk instead.
|
|
7022
7030
|
],
|
|
7023
7031
|
fonts: ["fonts/**/*.woff2", "fonts/**/*.woff", "fonts/**/*.ttf"],
|
|
7024
7032
|
framework: ["packages/ui/assets/**/*"]
|
|
@@ -7095,7 +7103,6 @@ import {
|
|
|
7095
7103
|
sep,
|
|
7096
7104
|
extname
|
|
7097
7105
|
} from "node:path";
|
|
7098
|
-
import { fileURLToPath } from "node:url";
|
|
7099
7106
|
function isEexistError(error2) {
|
|
7100
7107
|
return typeof error2 === "object" && error2 !== null && "code" in error2 && error2.code === "EEXIST";
|
|
7101
7108
|
}
|
|
@@ -7917,7 +7924,10 @@ var init_PathResolver = __esm({
|
|
|
7917
7924
|
return resolvedPath;
|
|
7918
7925
|
}
|
|
7919
7926
|
/**
|
|
7920
|
-
* Execute fast-glob with normalized results
|
|
7927
|
+
* Execute fast-glob with normalized results, sorted. fast-glob returns files in
|
|
7928
|
+
* filesystem completion order, which varies between runs: every discovery (routes,
|
|
7929
|
+
* themes, i18n, assets) and what it generates (route manifest, sitemap, llms.txt,
|
|
7930
|
+
* proxy) must list the same sources in the same order on every build.
|
|
7921
7931
|
* @private
|
|
7922
7932
|
*/
|
|
7923
7933
|
async _globWithNormalization(patterns, options) {
|
|
@@ -7925,7 +7935,7 @@ var init_PathResolver = __esm({
|
|
|
7925
7935
|
return results.map((path) => {
|
|
7926
7936
|
const pathStr = typeof path === "string" ? path : path.path;
|
|
7927
7937
|
return this.normalizePath(pathStr);
|
|
7928
|
-
});
|
|
7938
|
+
}).sort();
|
|
7929
7939
|
}
|
|
7930
7940
|
/**
|
|
7931
7941
|
* Resolve files using patterns with cross-platform support
|
|
@@ -8080,15 +8090,6 @@ var init_PathResolver = __esm({
|
|
|
8080
8090
|
const cjsPath = this.getEmptyCjsModulePath();
|
|
8081
8091
|
return cjsPath.replace(/\.cjs$/, ".js");
|
|
8082
8092
|
}
|
|
8083
|
-
/**
|
|
8084
|
-
* Get absolute path to empty flag component module.
|
|
8085
|
-
* Returns `export default () => null;` — used by flag filtering plugins
|
|
8086
|
-
* to replace unused flag files at build time.
|
|
8087
|
-
*/
|
|
8088
|
-
getEmptyFlagModulePath() {
|
|
8089
|
-
const __dirname2 = dirname2(fileURLToPath(import.meta.url));
|
|
8090
|
-
return this.normalizePath(resolve(__dirname2, "emptyFlag.js"));
|
|
8091
|
-
}
|
|
8092
8093
|
/**
|
|
8093
8094
|
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
8094
8095
|
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
@@ -8161,7 +8162,7 @@ import {
|
|
|
8161
8162
|
parse,
|
|
8162
8163
|
isAbsolute as pathIsAbsolute
|
|
8163
8164
|
} from "node:path";
|
|
8164
|
-
import { fileURLToPath
|
|
8165
|
+
import { fileURLToPath } from "node:url";
|
|
8165
8166
|
function globSync(pattern, options = {}) {
|
|
8166
8167
|
const patterns = Array.isArray(pattern) ? pattern : [pattern];
|
|
8167
8168
|
const cwd = options.cwd || pathResolverInstance.getAppRoot() || process.cwd();
|
|
@@ -8217,6 +8218,14 @@ var init_pathResolver = __esm({
|
|
|
8217
8218
|
}
|
|
8218
8219
|
});
|
|
8219
8220
|
|
|
8221
|
+
// packages/tooling/src/utils/package-paths.ts
|
|
8222
|
+
var init_package_paths = __esm({
|
|
8223
|
+
"packages/tooling/src/utils/package-paths.ts"() {
|
|
8224
|
+
"use strict";
|
|
8225
|
+
init_utils2();
|
|
8226
|
+
}
|
|
8227
|
+
});
|
|
8228
|
+
|
|
8220
8229
|
// packages/tooling/src/utils/type-guards.ts
|
|
8221
8230
|
function isObjectLike(value) {
|
|
8222
8231
|
return typeof value === "object" && value !== null;
|
|
@@ -8234,13 +8243,13 @@ import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFile
|
|
|
8234
8243
|
import { createRequire as createRequire3 } from "node:module";
|
|
8235
8244
|
import { dirname as dirname4, resolve as resolve3 } from "node:path";
|
|
8236
8245
|
import process from "node:process";
|
|
8237
|
-
import { fileURLToPath as
|
|
8246
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
8238
8247
|
var require2, __filename, __dirname;
|
|
8239
8248
|
var init_utils2 = __esm({
|
|
8240
8249
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
8241
8250
|
"use strict";
|
|
8242
8251
|
require2 = createRequire3(import.meta.url);
|
|
8243
|
-
__filename =
|
|
8252
|
+
__filename = fileURLToPath2(import.meta.url);
|
|
8244
8253
|
__dirname = dirname4(__filename);
|
|
8245
8254
|
if (typeof globalThis !== "undefined") {
|
|
8246
8255
|
globalThis.require = require2;
|
|
@@ -8255,6 +8264,1040 @@ var init_utils2 = __esm({
|
|
|
8255
8264
|
}
|
|
8256
8265
|
});
|
|
8257
8266
|
|
|
8267
|
+
// packages/tooling/src/utils/app-detection.ts
|
|
8268
|
+
var init_app_detection = __esm({
|
|
8269
|
+
"packages/tooling/src/utils/app-detection.ts"() {
|
|
8270
|
+
"use strict";
|
|
8271
|
+
init_utils2();
|
|
8272
|
+
}
|
|
8273
|
+
});
|
|
8274
|
+
|
|
8275
|
+
// packages/tooling/src/utils/app-selector.ts
|
|
8276
|
+
var init_app_selector = __esm({
|
|
8277
|
+
"packages/tooling/src/utils/app-selector.ts"() {
|
|
8278
|
+
"use strict";
|
|
8279
|
+
init_utils2();
|
|
8280
|
+
init_dist5();
|
|
8281
|
+
}
|
|
8282
|
+
});
|
|
8283
|
+
|
|
8284
|
+
// packages/tooling/src/cli/command-registry.ts
|
|
8285
|
+
function baseName(commanderName) {
|
|
8286
|
+
return commanderName.split(" ")[0] ?? commanderName;
|
|
8287
|
+
}
|
|
8288
|
+
function getAppCommandNames() {
|
|
8289
|
+
const names = [];
|
|
8290
|
+
for (const cmd of COMMAND_REGISTRY) {
|
|
8291
|
+
if (!cmd.appCommand) continue;
|
|
8292
|
+
names.push(baseName(cmd.name));
|
|
8293
|
+
if (cmd.alias) {
|
|
8294
|
+
const aliases = Array.isArray(cmd.alias) ? cmd.alias : [cmd.alias];
|
|
8295
|
+
names.push(...aliases);
|
|
8296
|
+
}
|
|
8297
|
+
}
|
|
8298
|
+
return names;
|
|
8299
|
+
}
|
|
8300
|
+
var COMMAND_REGISTRY;
|
|
8301
|
+
var init_command_registry = __esm({
|
|
8302
|
+
"packages/tooling/src/cli/command-registry.ts"() {
|
|
8303
|
+
"use strict";
|
|
8304
|
+
init_utils2();
|
|
8305
|
+
COMMAND_REGISTRY = [
|
|
8306
|
+
// ---------------------------------------------------------------------------
|
|
8307
|
+
// Project
|
|
8308
|
+
// ---------------------------------------------------------------------------
|
|
8309
|
+
{
|
|
8310
|
+
name: "init [name]",
|
|
8311
|
+
description: "Create a new DoNotDev project",
|
|
8312
|
+
alias: "create-project",
|
|
8313
|
+
category: "project",
|
|
8314
|
+
public: true,
|
|
8315
|
+
loader: "../scaffolding/create-project.ts",
|
|
8316
|
+
wrapperFile: "create-project",
|
|
8317
|
+
exportName: "createProject"
|
|
8318
|
+
},
|
|
8319
|
+
{
|
|
8320
|
+
name: "create-app [name]",
|
|
8321
|
+
description: "Add a new app to existing project",
|
|
8322
|
+
category: "project",
|
|
8323
|
+
public: true,
|
|
8324
|
+
options: [
|
|
8325
|
+
{ flags: "--name <name>", description: "App name (non-interactive)" },
|
|
8326
|
+
{
|
|
8327
|
+
flags: "--builder <builder>",
|
|
8328
|
+
description: "Framework: vite, next, or expo (default: vite)"
|
|
8329
|
+
},
|
|
8330
|
+
{
|
|
8331
|
+
flags: "--host <host>",
|
|
8332
|
+
description: "Hosting: none, vercel, or firebase (default: none)"
|
|
8333
|
+
},
|
|
8334
|
+
{
|
|
8335
|
+
flags: "--functions <runtime>",
|
|
8336
|
+
description: "Functions: none, vercel, firebase, or supabase (default: none)"
|
|
8337
|
+
},
|
|
8338
|
+
{
|
|
8339
|
+
flags: "--backend <backend>",
|
|
8340
|
+
description: "BaaS: none, firebase, or supabase (default: none)"
|
|
8341
|
+
},
|
|
8342
|
+
{
|
|
8343
|
+
flags: "--billing",
|
|
8344
|
+
description: "Billing (Stripe): scaffold the billing functions (default: off; needs --functions or --backend)"
|
|
8345
|
+
},
|
|
8346
|
+
{
|
|
8347
|
+
flags: "--oauth",
|
|
8348
|
+
description: "OAuth API connections (third-party APIs via @donotdev/oauth, not social sign-in): scaffold the OAuth functions (default: off; needs --functions or --backend)"
|
|
8349
|
+
}
|
|
8350
|
+
],
|
|
8351
|
+
loader: "../scaffolding/create-app.ts",
|
|
8352
|
+
wrapperFile: "create-app",
|
|
8353
|
+
exportName: "createApp"
|
|
8354
|
+
},
|
|
8355
|
+
{
|
|
8356
|
+
name: "get-demo",
|
|
8357
|
+
description: "Copy the demo app into apps/demo",
|
|
8358
|
+
category: "project",
|
|
8359
|
+
public: true,
|
|
8360
|
+
options: [
|
|
8361
|
+
{
|
|
8362
|
+
flags: "--force",
|
|
8363
|
+
description: "Replace existing demo app without prompting"
|
|
8364
|
+
}
|
|
8365
|
+
],
|
|
8366
|
+
loader: "../scaffolding/get-demo.ts",
|
|
8367
|
+
wrapperFile: "get-demo",
|
|
8368
|
+
exportName: "getDemo"
|
|
8369
|
+
},
|
|
8370
|
+
// ---------------------------------------------------------------------------
|
|
8371
|
+
// Development
|
|
8372
|
+
// ---------------------------------------------------------------------------
|
|
8373
|
+
{
|
|
8374
|
+
name: "dev [app]",
|
|
8375
|
+
description: "Start development server",
|
|
8376
|
+
category: "development",
|
|
8377
|
+
public: true,
|
|
8378
|
+
appCommand: true,
|
|
8379
|
+
actionPattern: "app",
|
|
8380
|
+
options: [
|
|
8381
|
+
{ flags: "-c, --concurrency <n>", description: "set concurrency" }
|
|
8382
|
+
],
|
|
8383
|
+
loader: "../apps/dev.ts",
|
|
8384
|
+
exportName: "dev"
|
|
8385
|
+
},
|
|
8386
|
+
{
|
|
8387
|
+
name: "build [app]",
|
|
8388
|
+
description: "Build for production",
|
|
8389
|
+
category: "development",
|
|
8390
|
+
public: true,
|
|
8391
|
+
appCommand: true,
|
|
8392
|
+
actionPattern: "app",
|
|
8393
|
+
options: [
|
|
8394
|
+
{ flags: "--mode <mode>", description: "Vite mode (loads .env.<mode>)" }
|
|
8395
|
+
],
|
|
8396
|
+
loader: "../apps/build.ts",
|
|
8397
|
+
exportName: "build"
|
|
8398
|
+
},
|
|
8399
|
+
{
|
|
8400
|
+
name: "preview [app]",
|
|
8401
|
+
description: "Preview production build",
|
|
8402
|
+
category: "development",
|
|
8403
|
+
public: true,
|
|
8404
|
+
appCommand: true,
|
|
8405
|
+
actionPattern: "app",
|
|
8406
|
+
options: [{ flags: "--port <port>", description: "Port to serve on" }],
|
|
8407
|
+
loader: "../apps/preview.ts",
|
|
8408
|
+
exportName: "preview"
|
|
8409
|
+
},
|
|
8410
|
+
{
|
|
8411
|
+
name: "emu [app]",
|
|
8412
|
+
description: "Start dev with local backend",
|
|
8413
|
+
category: "development",
|
|
8414
|
+
public: true,
|
|
8415
|
+
appCommand: true,
|
|
8416
|
+
actionPattern: "app",
|
|
8417
|
+
options: [
|
|
8418
|
+
{
|
|
8419
|
+
flags: "--services <services>",
|
|
8420
|
+
description: "Comma-separated list of services: auth,functions,firestore,stripe"
|
|
8421
|
+
},
|
|
8422
|
+
{ flags: "--auth", description: "Enable Auth emulator" },
|
|
8423
|
+
{ flags: "--firestore", description: "Enable Firestore emulator" },
|
|
8424
|
+
{ flags: "--stripe", description: "Enable Stripe webhook forwarding" }
|
|
8425
|
+
],
|
|
8426
|
+
loader: "../apps/emu.ts",
|
|
8427
|
+
exportName: "emu"
|
|
8428
|
+
},
|
|
8429
|
+
{
|
|
8430
|
+
name: "format",
|
|
8431
|
+
description: "Format code with framework standards",
|
|
8432
|
+
category: "development",
|
|
8433
|
+
public: true,
|
|
8434
|
+
loader: "../quality/format.ts",
|
|
8435
|
+
exportName: "format"
|
|
8436
|
+
},
|
|
8437
|
+
{
|
|
8438
|
+
name: "lint",
|
|
8439
|
+
description: "Lint code using ESLint",
|
|
8440
|
+
category: "development",
|
|
8441
|
+
options: [
|
|
8442
|
+
{ flags: "-f, --fix", description: "automatically fix linting issues" }
|
|
8443
|
+
],
|
|
8444
|
+
loader: "../quality/lint.ts",
|
|
8445
|
+
exportName: "lint"
|
|
8446
|
+
},
|
|
8447
|
+
{
|
|
8448
|
+
name: "type-check [package]",
|
|
8449
|
+
description: "Type-check packages",
|
|
8450
|
+
alias: "tc",
|
|
8451
|
+
category: "development",
|
|
8452
|
+
public: true,
|
|
8453
|
+
appCommand: true,
|
|
8454
|
+
options: [
|
|
8455
|
+
{
|
|
8456
|
+
flags: "--package <package>",
|
|
8457
|
+
description: "type-check a specific package"
|
|
8458
|
+
}
|
|
8459
|
+
],
|
|
8460
|
+
loader: "../quality/type-check.ts",
|
|
8461
|
+
wrapperFile: "type-check",
|
|
8462
|
+
exportName: "typeCheck"
|
|
8463
|
+
},
|
|
8464
|
+
{
|
|
8465
|
+
name: "check-ui",
|
|
8466
|
+
description: "Check UI compliance with STYLING_SYSTEM.md rules",
|
|
8467
|
+
category: "development",
|
|
8468
|
+
options: [
|
|
8469
|
+
{ flags: "-d, --dir <dir>", description: "target directory to check" },
|
|
8470
|
+
{ flags: "-r, --report <file>", description: "save report to JSON file" }
|
|
8471
|
+
],
|
|
8472
|
+
loader: "../quality/check-ui.ts",
|
|
8473
|
+
exportName: "checkUI"
|
|
8474
|
+
},
|
|
8475
|
+
{
|
|
8476
|
+
name: "check-expo",
|
|
8477
|
+
description: "Check Expo API parity with web packages (exports, props, hooks)",
|
|
8478
|
+
category: "development",
|
|
8479
|
+
loader: "../quality/check-expo-api.ts",
|
|
8480
|
+
exportName: "checkExpo"
|
|
8481
|
+
},
|
|
8482
|
+
{
|
|
8483
|
+
name: "check-translations [target]",
|
|
8484
|
+
description: "Validate translation files across languages (missing keys, type mismatches)",
|
|
8485
|
+
category: "development",
|
|
8486
|
+
options: [
|
|
8487
|
+
{
|
|
8488
|
+
flags: "-r, --report <file>",
|
|
8489
|
+
description: "Write full report to file"
|
|
8490
|
+
},
|
|
8491
|
+
{ flags: "--all", description: "Check all apps and i18n package" }
|
|
8492
|
+
],
|
|
8493
|
+
loader: "../quality/check-translations.ts",
|
|
8494
|
+
exportName: "checkTranslations"
|
|
8495
|
+
},
|
|
8496
|
+
{
|
|
8497
|
+
name: "sync-translations [app]",
|
|
8498
|
+
description: "Sync locale structure from English reference, fix missing keys and array lengths",
|
|
8499
|
+
category: "development",
|
|
8500
|
+
loader: "../quality/sync-translations.ts"
|
|
8501
|
+
},
|
|
8502
|
+
{
|
|
8503
|
+
name: "validate-package [package]",
|
|
8504
|
+
description: "Validate package(s) before bundle/publish (checklist: types, CSS, exports, etc.)",
|
|
8505
|
+
category: "development",
|
|
8506
|
+
options: [{ flags: "--all", description: "validate all packages" }],
|
|
8507
|
+
loader: "../quality/validate-package.ts",
|
|
8508
|
+
exportName: "validatePackage"
|
|
8509
|
+
},
|
|
8510
|
+
{
|
|
8511
|
+
name: "syncpack",
|
|
8512
|
+
description: "Check dependency version consistency across all packages (syncpack)",
|
|
8513
|
+
category: "development",
|
|
8514
|
+
options: [
|
|
8515
|
+
{
|
|
8516
|
+
flags: "--fix",
|
|
8517
|
+
description: "auto-fix version mismatches"
|
|
8518
|
+
}
|
|
8519
|
+
],
|
|
8520
|
+
loader: "../quality/syncpack.ts",
|
|
8521
|
+
exportName: "syncpack"
|
|
8522
|
+
},
|
|
8523
|
+
{
|
|
8524
|
+
name: "knip",
|
|
8525
|
+
description: "Detect dead code, unused exports, and unlisted dependencies (knip)",
|
|
8526
|
+
category: "development",
|
|
8527
|
+
options: [
|
|
8528
|
+
{
|
|
8529
|
+
flags: "--fix",
|
|
8530
|
+
description: "auto-remove unused exports"
|
|
8531
|
+
}
|
|
8532
|
+
],
|
|
8533
|
+
loader: "../quality/knip.ts",
|
|
8534
|
+
exportName: "knip"
|
|
8535
|
+
},
|
|
8536
|
+
{
|
|
8537
|
+
name: "publint",
|
|
8538
|
+
description: "Validate package.json exports/files fields for all published packages",
|
|
8539
|
+
category: "development",
|
|
8540
|
+
options: [
|
|
8541
|
+
{
|
|
8542
|
+
flags: "--package <package>",
|
|
8543
|
+
description: "validate a specific package"
|
|
8544
|
+
}
|
|
8545
|
+
],
|
|
8546
|
+
loader: "../quality/publint.ts",
|
|
8547
|
+
exportName: "publint"
|
|
8548
|
+
},
|
|
8549
|
+
{
|
|
8550
|
+
name: "attw",
|
|
8551
|
+
description: "Verify TypeScript type resolution for published packages (@arethetypeswrong)",
|
|
8552
|
+
category: "development",
|
|
8553
|
+
options: [
|
|
8554
|
+
{
|
|
8555
|
+
flags: "--package <package>",
|
|
8556
|
+
description: "check a specific package"
|
|
8557
|
+
}
|
|
8558
|
+
],
|
|
8559
|
+
loader: "../quality/attw.ts",
|
|
8560
|
+
exportName: "attw"
|
|
8561
|
+
},
|
|
8562
|
+
{
|
|
8563
|
+
name: "size",
|
|
8564
|
+
description: "Check bundle sizes against budgets (size-limit)",
|
|
8565
|
+
alias: "size-limit",
|
|
8566
|
+
category: "development",
|
|
8567
|
+
options: [
|
|
8568
|
+
{
|
|
8569
|
+
flags: "--json",
|
|
8570
|
+
description: "output machine-readable JSON"
|
|
8571
|
+
}
|
|
8572
|
+
],
|
|
8573
|
+
loader: "../quality/size-limit.ts",
|
|
8574
|
+
exportName: "sizeLimit"
|
|
8575
|
+
},
|
|
8576
|
+
{
|
|
8577
|
+
name: "preflight",
|
|
8578
|
+
description: "Run all quality gates before bundling (lint, syncpack, knip, publint, attw, size)",
|
|
8579
|
+
alias: "pf",
|
|
8580
|
+
category: "development",
|
|
8581
|
+
loader: "../quality/preflight.ts",
|
|
8582
|
+
exportName: "preflight"
|
|
8583
|
+
},
|
|
8584
|
+
// ---------------------------------------------------------------------------
|
|
8585
|
+
// Build & Maintenance
|
|
8586
|
+
// ---------------------------------------------------------------------------
|
|
8587
|
+
{
|
|
8588
|
+
name: "bundle [package]",
|
|
8589
|
+
description: "Build all packages and publish",
|
|
8590
|
+
category: "build",
|
|
8591
|
+
options: [
|
|
8592
|
+
{ flags: "--package <package>", description: "build a specific package" },
|
|
8593
|
+
{ flags: "--all", description: "build all packages" },
|
|
8594
|
+
{ flags: "--skip-build", description: "skip build step" },
|
|
8595
|
+
{ flags: "--skip-minify", description: "skip minification" },
|
|
8596
|
+
{ flags: "--skip-publish", description: "skip publishing" },
|
|
8597
|
+
{
|
|
8598
|
+
flags: "--skip-validation",
|
|
8599
|
+
description: "skip package validation before build"
|
|
8600
|
+
},
|
|
8601
|
+
{
|
|
8602
|
+
flags: "--skip-preflight",
|
|
8603
|
+
description: "skip publint + attw pre-publish checks"
|
|
8604
|
+
},
|
|
8605
|
+
{
|
|
8606
|
+
flags: "--verdaccio",
|
|
8607
|
+
description: "publish to local Verdaccio registry instead of npm"
|
|
8608
|
+
},
|
|
8609
|
+
{
|
|
8610
|
+
flags: "--tar",
|
|
8611
|
+
description: "Create tarballs + update test repo (no publish)"
|
|
8612
|
+
},
|
|
8613
|
+
{ flags: "--force", description: "force publish (npm publish --force)" }
|
|
8614
|
+
],
|
|
8615
|
+
loader: "../bundler/bundle.ts",
|
|
8616
|
+
exportName: "bundle"
|
|
8617
|
+
},
|
|
8618
|
+
{
|
|
8619
|
+
name: "pack [packages...]",
|
|
8620
|
+
description: "Create tarballs for testing in consumer apps",
|
|
8621
|
+
category: "build",
|
|
8622
|
+
options: [
|
|
8623
|
+
{
|
|
8624
|
+
flags: "--install <path>",
|
|
8625
|
+
description: "Install tarballs into consumer app (repeatable: --install ../wai --install ../apc)",
|
|
8626
|
+
collect: true
|
|
8627
|
+
},
|
|
8628
|
+
{ flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
|
|
8629
|
+
],
|
|
8630
|
+
loader: "../bundler/pack.ts",
|
|
8631
|
+
exportName: "pack"
|
|
8632
|
+
},
|
|
8633
|
+
{
|
|
8634
|
+
name: "clean",
|
|
8635
|
+
description: "Clean build artifacts, caches, and node_modules",
|
|
8636
|
+
category: "build",
|
|
8637
|
+
loader: "../maintenance/clean.ts",
|
|
8638
|
+
exportName: "clean"
|
|
8639
|
+
},
|
|
8640
|
+
{
|
|
8641
|
+
name: "cacheout [app]",
|
|
8642
|
+
description: "Clear build caches without touching node_modules",
|
|
8643
|
+
alias: "co",
|
|
8644
|
+
category: "build",
|
|
8645
|
+
public: true,
|
|
8646
|
+
appCommand: true,
|
|
8647
|
+
options: [
|
|
8648
|
+
{ flags: "--app <app>", description: "App name to clear cache for" }
|
|
8649
|
+
],
|
|
8650
|
+
loader: "../maintenance/cacheout.ts",
|
|
8651
|
+
exportName: "cacheout"
|
|
8652
|
+
},
|
|
8653
|
+
{
|
|
8654
|
+
name: "sync-deps",
|
|
8655
|
+
description: "Sync dependencies with dependencies-matrix.json (packages, apps, functions, root)",
|
|
8656
|
+
alias: "sync-dependencies",
|
|
8657
|
+
category: "build",
|
|
8658
|
+
options: [
|
|
8659
|
+
{
|
|
8660
|
+
flags: "-c, --check-only",
|
|
8661
|
+
description: "only check for issues, do not fix"
|
|
8662
|
+
},
|
|
8663
|
+
{
|
|
8664
|
+
flags: "-f, --fix",
|
|
8665
|
+
description: "automatically fix dependency issues"
|
|
8666
|
+
}
|
|
8667
|
+
],
|
|
8668
|
+
loader: "../bundler/sync-dependencies.ts",
|
|
8669
|
+
exportName: "syncDependencies"
|
|
8670
|
+
},
|
|
8671
|
+
{
|
|
8672
|
+
name: "bump",
|
|
8673
|
+
description: "Update framework packages and peer dependencies to latest compatible versions",
|
|
8674
|
+
category: "build",
|
|
8675
|
+
public: true,
|
|
8676
|
+
loader: "../maintenance/bump.ts",
|
|
8677
|
+
exportName: "bump"
|
|
8678
|
+
},
|
|
8679
|
+
{
|
|
8680
|
+
name: "versions",
|
|
8681
|
+
description: "Check latest npm versions of all @donotdev/* packages",
|
|
8682
|
+
alias: "v",
|
|
8683
|
+
category: "build",
|
|
8684
|
+
loader: "../maintenance/versions.ts"
|
|
8685
|
+
},
|
|
8686
|
+
// ---------------------------------------------------------------------------
|
|
8687
|
+
// Deployment
|
|
8688
|
+
// ---------------------------------------------------------------------------
|
|
8689
|
+
{
|
|
8690
|
+
name: "deploy [app]",
|
|
8691
|
+
description: "Deploy app",
|
|
8692
|
+
category: "deployment",
|
|
8693
|
+
public: true,
|
|
8694
|
+
appCommand: true,
|
|
8695
|
+
options: [
|
|
8696
|
+
{ flags: "-p, --project <project>", description: "Project ID" },
|
|
8697
|
+
{
|
|
8698
|
+
flags: "--skip-build",
|
|
8699
|
+
description: "Reuse existing builds (dist/, out/, .vercel/output, functions, edge .build/). Default: build"
|
|
8700
|
+
},
|
|
8701
|
+
{
|
|
8702
|
+
flags: "--from-git",
|
|
8703
|
+
description: "Next.js on Vercel: let Vercel build from linked Git (default: local vercel build + upload)"
|
|
8704
|
+
},
|
|
8705
|
+
{
|
|
8706
|
+
flags: "--force",
|
|
8707
|
+
description: "Delete deployed Firebase functions missing from the local source (default: off; the deploy aborts and names them)"
|
|
8708
|
+
},
|
|
8709
|
+
{
|
|
8710
|
+
flags: "--staging",
|
|
8711
|
+
description: "Deploy to staging (uses .env.staging and staging credentials)"
|
|
8712
|
+
},
|
|
8713
|
+
{
|
|
8714
|
+
flags: "--scope <scope>",
|
|
8715
|
+
description: "What to deploy: frontend, functions, rules, both or all. Implies --yes"
|
|
8716
|
+
},
|
|
8717
|
+
{
|
|
8718
|
+
flags: "-y, --yes",
|
|
8719
|
+
description: "Non-interactive: never prompt; a missing required value fails, naming its flag (also when stdin is not a TTY)"
|
|
8720
|
+
},
|
|
8721
|
+
{
|
|
8722
|
+
flags: "--no-sync-secrets",
|
|
8723
|
+
description: "Skip pushing the secrets functions.yaml binds to Firebase Secret Manager (default: push changed values)"
|
|
8724
|
+
}
|
|
8725
|
+
],
|
|
8726
|
+
loader: "../apps/deploy.ts",
|
|
8727
|
+
exportName: "deploy"
|
|
8728
|
+
},
|
|
8729
|
+
{
|
|
8730
|
+
name: "staging [app]",
|
|
8731
|
+
description: "Deploy to staging/UAT (shorthand for deploy --staging)",
|
|
8732
|
+
alias: "uat",
|
|
8733
|
+
category: "deployment",
|
|
8734
|
+
public: true,
|
|
8735
|
+
appCommand: true,
|
|
8736
|
+
options: [
|
|
8737
|
+
{
|
|
8738
|
+
flags: "-p, --project <project>",
|
|
8739
|
+
description: "Project ID (overrides default)"
|
|
8740
|
+
},
|
|
8741
|
+
{
|
|
8742
|
+
flags: "--skip-build",
|
|
8743
|
+
description: "Reuse existing builds (dist/, out/, .vercel/output, functions, edge .build/). Default: build"
|
|
8744
|
+
},
|
|
8745
|
+
{
|
|
8746
|
+
flags: "--from-git",
|
|
8747
|
+
description: "Next.js on Vercel: let Vercel build from linked Git (default: local vercel build + upload)"
|
|
8748
|
+
},
|
|
8749
|
+
{
|
|
8750
|
+
flags: "--force",
|
|
8751
|
+
description: "Delete deployed Firebase functions missing from the local source (default: off; the deploy aborts and names them)"
|
|
8752
|
+
},
|
|
8753
|
+
{
|
|
8754
|
+
flags: "--scope <scope>",
|
|
8755
|
+
description: "What to deploy: frontend, functions, rules, both or all. Implies --yes"
|
|
8756
|
+
},
|
|
8757
|
+
{
|
|
8758
|
+
flags: "-y, --yes",
|
|
8759
|
+
description: "Non-interactive: never prompt; a missing required value fails, naming its flag (also when stdin is not a TTY)"
|
|
8760
|
+
},
|
|
8761
|
+
{
|
|
8762
|
+
flags: "--no-sync-secrets",
|
|
8763
|
+
description: "Skip pushing the secrets functions.yaml binds to Firebase Secret Manager (default: push changed values)"
|
|
8764
|
+
}
|
|
8765
|
+
],
|
|
8766
|
+
loader: "../apps/deploy.ts"
|
|
8767
|
+
},
|
|
8768
|
+
{
|
|
8769
|
+
name: "sync-secrets",
|
|
8770
|
+
description: "Sync environment variables to Firebase/Vercel or GitHub Secrets",
|
|
8771
|
+
category: "deployment",
|
|
8772
|
+
public: true,
|
|
8773
|
+
options: [
|
|
8774
|
+
{ flags: "-e, --env-file <file>", description: "environment file path" },
|
|
8775
|
+
{
|
|
8776
|
+
flags: "--target <target>",
|
|
8777
|
+
description: "sync target: runtime (default) or github"
|
|
8778
|
+
},
|
|
8779
|
+
{
|
|
8780
|
+
flags: "--platform <platform>",
|
|
8781
|
+
description: "platform (firebase|vercel) for runtime target"
|
|
8782
|
+
},
|
|
8783
|
+
{ flags: "-p, --project <project>", description: "project ID" },
|
|
8784
|
+
{
|
|
8785
|
+
flags: "--app <app>",
|
|
8786
|
+
description: "Vercel app to sync (apps/<app>)"
|
|
8787
|
+
},
|
|
8788
|
+
{
|
|
8789
|
+
flags: "--vercel-project <id>",
|
|
8790
|
+
description: "Vercel project ID (overrides VERCEL_PROJECT_ID from the app .env)"
|
|
8791
|
+
},
|
|
8792
|
+
{
|
|
8793
|
+
flags: "--repo <repo>",
|
|
8794
|
+
description: "GitHub repo (owner/repo) for github target"
|
|
8795
|
+
}
|
|
8796
|
+
],
|
|
8797
|
+
loader: "../apps/sync-secrets.ts",
|
|
8798
|
+
wrapperFile: "sync-secrets",
|
|
8799
|
+
exportName: "syncSecrets"
|
|
8800
|
+
},
|
|
8801
|
+
{
|
|
8802
|
+
name: "make-admin [userId]",
|
|
8803
|
+
description: "Set a user as admin (custom claims / app_metadata)",
|
|
8804
|
+
alias: "ma",
|
|
8805
|
+
category: "deployment",
|
|
8806
|
+
public: true,
|
|
8807
|
+
options: [
|
|
8808
|
+
{
|
|
8809
|
+
flags: "--project <projectId>",
|
|
8810
|
+
description: "Project ID (Firebase or Supabase)"
|
|
8811
|
+
},
|
|
8812
|
+
{
|
|
8813
|
+
flags: "--project-id <projectId>",
|
|
8814
|
+
description: "Project ID (alias for --project)"
|
|
8815
|
+
},
|
|
8816
|
+
{
|
|
8817
|
+
flags: "--super",
|
|
8818
|
+
description: "Assign super role (isAdmin=true, isSuper=true, role=super)"
|
|
8819
|
+
}
|
|
8820
|
+
],
|
|
8821
|
+
loader: "../internal/make-admin.ts",
|
|
8822
|
+
wrapperFile: "make-admin",
|
|
8823
|
+
exportName: "makeAdmin"
|
|
8824
|
+
},
|
|
8825
|
+
{
|
|
8826
|
+
name: "coach",
|
|
8827
|
+
description: "Show what to configure before running setup",
|
|
8828
|
+
category: "deployment",
|
|
8829
|
+
public: true,
|
|
8830
|
+
options: [],
|
|
8831
|
+
loader: "../cli/coach/coach.ts",
|
|
8832
|
+
exportName: "coach"
|
|
8833
|
+
},
|
|
8834
|
+
{
|
|
8835
|
+
name: "setup [provider]",
|
|
8836
|
+
description: "Set up infrastructure providers (firebase, supabase, vercel)",
|
|
8837
|
+
category: "deployment",
|
|
8838
|
+
public: true,
|
|
8839
|
+
options: [],
|
|
8840
|
+
loader: "../cli/setup/setup.ts",
|
|
8841
|
+
exportName: "setup"
|
|
8842
|
+
},
|
|
8843
|
+
{
|
|
8844
|
+
name: "setup-cicd [app]",
|
|
8845
|
+
description: "Setup CI/CD: detect providers, upload GitHub secrets, generate workflow YAML",
|
|
8846
|
+
category: "deployment",
|
|
8847
|
+
public: true,
|
|
8848
|
+
appCommand: true,
|
|
8849
|
+
options: [
|
|
8850
|
+
{
|
|
8851
|
+
flags: "--app <app>",
|
|
8852
|
+
description: "App name (auto-detected if single app)"
|
|
8853
|
+
},
|
|
8854
|
+
{
|
|
8855
|
+
flags: "--staging",
|
|
8856
|
+
description: "Include staging workflow generation"
|
|
8857
|
+
}
|
|
8858
|
+
],
|
|
8859
|
+
loader: "../scaffolding/setup-cicd.ts",
|
|
8860
|
+
wrapperFile: "setup-cicd",
|
|
8861
|
+
exportName: "setupCICD"
|
|
8862
|
+
},
|
|
8863
|
+
{
|
|
8864
|
+
name: "soc2",
|
|
8865
|
+
description: "Run SOC2 readiness check \u2014 pass/fail report per Trust Service Criteria",
|
|
8866
|
+
category: "deployment",
|
|
8867
|
+
options: [
|
|
8868
|
+
{
|
|
8869
|
+
flags: "-a, --app <app>",
|
|
8870
|
+
description: "app name to scan (if multiple apps)"
|
|
8871
|
+
},
|
|
8872
|
+
{ flags: "--json", description: "output machine-readable JSON report" }
|
|
8873
|
+
],
|
|
8874
|
+
loader: "../apps/soc2-check.ts",
|
|
8875
|
+
exportName: "soc2Check"
|
|
8876
|
+
},
|
|
8877
|
+
{
|
|
8878
|
+
name: "doctor",
|
|
8879
|
+
description: "Check project health: validate provider connections and .env files",
|
|
8880
|
+
category: "deployment",
|
|
8881
|
+
public: true,
|
|
8882
|
+
options: [
|
|
8883
|
+
{
|
|
8884
|
+
flags: "-c, --check <check>",
|
|
8885
|
+
description: "run a single check (env, firebase, supabase, auth)"
|
|
8886
|
+
}
|
|
8887
|
+
],
|
|
8888
|
+
loader: "../cli/doctor/doctor.ts",
|
|
8889
|
+
exportName: "doctor"
|
|
8890
|
+
},
|
|
8891
|
+
// ---------------------------------------------------------------------------
|
|
8892
|
+
// Database
|
|
8893
|
+
// ---------------------------------------------------------------------------
|
|
8894
|
+
{
|
|
8895
|
+
name: "seed [app]",
|
|
8896
|
+
description: "Generate and insert sample data into your database",
|
|
8897
|
+
category: "deployment",
|
|
8898
|
+
public: true,
|
|
8899
|
+
appCommand: true,
|
|
8900
|
+
options: [
|
|
8901
|
+
{
|
|
8902
|
+
flags: "-n, --count <number>",
|
|
8903
|
+
description: "Rows per entity (default: 10)"
|
|
8904
|
+
},
|
|
8905
|
+
{
|
|
8906
|
+
flags: "--clean",
|
|
8907
|
+
description: "Truncate tables before seeding"
|
|
8908
|
+
},
|
|
8909
|
+
{
|
|
8910
|
+
flags: "--only <entities>",
|
|
8911
|
+
description: "Comma-separated entity names to seed"
|
|
8912
|
+
},
|
|
8913
|
+
{
|
|
8914
|
+
flags: "--seed <number>",
|
|
8915
|
+
description: "Random seed for reproducible output (default: 42)"
|
|
8916
|
+
}
|
|
8917
|
+
],
|
|
8918
|
+
loader: "../cli/seed/seed.ts",
|
|
8919
|
+
exportName: "seed"
|
|
8920
|
+
},
|
|
8921
|
+
{
|
|
8922
|
+
name: "db [script]",
|
|
8923
|
+
description: "Run a custom database script with injected DbContext",
|
|
8924
|
+
category: "deployment",
|
|
8925
|
+
public: true,
|
|
8926
|
+
options: [
|
|
8927
|
+
{
|
|
8928
|
+
flags: "-l, --list",
|
|
8929
|
+
description: "List available scripts in .dndev/scripts/"
|
|
8930
|
+
},
|
|
8931
|
+
{
|
|
8932
|
+
flags: "-a, --app <app>",
|
|
8933
|
+
description: "App name (for multi-app monorepos)"
|
|
8934
|
+
}
|
|
8935
|
+
],
|
|
8936
|
+
loader: "../cli/db/db.ts",
|
|
8937
|
+
exportName: "db"
|
|
8938
|
+
},
|
|
8939
|
+
{
|
|
8940
|
+
name: "db-check [app]",
|
|
8941
|
+
description: "List, per generated CHECK constraint (<table>_<column>_<rule>, added NOT VALID), the row ids that violate it (Supabase, read-only)",
|
|
8942
|
+
category: "deployment",
|
|
8943
|
+
public: true,
|
|
8944
|
+
options: [
|
|
8945
|
+
{
|
|
8946
|
+
flags: "-a, --app <app>",
|
|
8947
|
+
description: "App name (for multi-app monorepos)"
|
|
8948
|
+
}
|
|
8949
|
+
],
|
|
8950
|
+
loader: "../cli/db/check.ts",
|
|
8951
|
+
exportName: "dbCheck"
|
|
8952
|
+
},
|
|
8953
|
+
// ---------------------------------------------------------------------------
|
|
8954
|
+
// Content
|
|
8955
|
+
// ---------------------------------------------------------------------------
|
|
8956
|
+
{
|
|
8957
|
+
name: "blog <slug>",
|
|
8958
|
+
description: "Convert source image to optimized WebP for blog (1200px, quality 80)",
|
|
8959
|
+
category: "content",
|
|
8960
|
+
options: [],
|
|
8961
|
+
loader: "../apps/blog.ts"
|
|
8962
|
+
},
|
|
8963
|
+
// ---------------------------------------------------------------------------
|
|
8964
|
+
// Internal
|
|
8965
|
+
// ---------------------------------------------------------------------------
|
|
8966
|
+
{
|
|
8967
|
+
name: "keygen",
|
|
8968
|
+
description: "Generate DoNotDev Framework license keys",
|
|
8969
|
+
alias: "kg",
|
|
8970
|
+
category: "internal",
|
|
8971
|
+
options: [
|
|
8972
|
+
{
|
|
8973
|
+
flags: "--tier <tier>",
|
|
8974
|
+
description: "license tier (dev_seat_1, project_1, etc.)"
|
|
8975
|
+
},
|
|
8976
|
+
{
|
|
8977
|
+
flags: "--count <count>",
|
|
8978
|
+
description: "number of keys to generate (default: 1)"
|
|
8979
|
+
}
|
|
8980
|
+
],
|
|
8981
|
+
loader: "../utils/keygen.ts",
|
|
8982
|
+
exportName: "keygen"
|
|
8983
|
+
},
|
|
8984
|
+
{
|
|
8985
|
+
name: "grill-review",
|
|
8986
|
+
description: "Interactive review of grill report (.dndev/grill-report.json)",
|
|
8987
|
+
alias: "gr",
|
|
8988
|
+
category: "internal",
|
|
8989
|
+
options: [
|
|
8990
|
+
{
|
|
8991
|
+
flags: "-f, --filter <status>",
|
|
8992
|
+
description: "Filter by status: pending (default), approved, rejected, skipped, all"
|
|
8993
|
+
},
|
|
8994
|
+
{
|
|
8995
|
+
flags: "-s, --severity <level>",
|
|
8996
|
+
description: "Filter by severity: blocker, warn, note"
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
flags: "--summary",
|
|
9000
|
+
description: "Show summary only, no interactive review"
|
|
9001
|
+
},
|
|
9002
|
+
{
|
|
9003
|
+
flags: "--export-pairs",
|
|
9004
|
+
description: "Export reviewed items as DPO training pairs to .dndev/dpo-pairs.jsonl"
|
|
9005
|
+
}
|
|
9006
|
+
],
|
|
9007
|
+
loader: "../quality/grill-review.ts"
|
|
9008
|
+
},
|
|
9009
|
+
{
|
|
9010
|
+
name: "sync-app-templates",
|
|
9011
|
+
description: "Copy live apps/demo and apps/dndev to CLI templates (with .example suffix)",
|
|
9012
|
+
alias: "sat",
|
|
9013
|
+
category: "internal",
|
|
9014
|
+
loader: "../internal/sync-app-templates.ts",
|
|
9015
|
+
exportName: "syncAppTemplates"
|
|
9016
|
+
},
|
|
9017
|
+
{
|
|
9018
|
+
name: "generate sql",
|
|
9019
|
+
description: "Generate PostgreSQL CREATE TABLE + RLS + trigger from entity definitions",
|
|
9020
|
+
category: "internal",
|
|
9021
|
+
options: [
|
|
9022
|
+
{
|
|
9023
|
+
flags: "--entity-dir <dir>",
|
|
9024
|
+
description: "directory containing entity files (default: entities)"
|
|
9025
|
+
},
|
|
9026
|
+
{
|
|
9027
|
+
flags: "--output-dir <dir>",
|
|
9028
|
+
description: "output directory for migrations (default: supabase/migrations)"
|
|
9029
|
+
},
|
|
9030
|
+
{
|
|
9031
|
+
flags: "--no-single-file",
|
|
9032
|
+
description: "emit one migration file per entity"
|
|
9033
|
+
}
|
|
9034
|
+
],
|
|
9035
|
+
loader: "../generators/sql-generator.ts"
|
|
9036
|
+
},
|
|
9037
|
+
// ---------------------------------------------------------------------------
|
|
9038
|
+
// Quality Analysis
|
|
9039
|
+
// ---------------------------------------------------------------------------
|
|
9040
|
+
{
|
|
9041
|
+
name: "retro",
|
|
9042
|
+
description: "Engineering retrospective - velocity, patterns, trends from git history",
|
|
9043
|
+
category: "development",
|
|
9044
|
+
options: [
|
|
9045
|
+
{
|
|
9046
|
+
flags: "-w, --window <window>",
|
|
9047
|
+
description: "Time window: 24h, 7d (default), 14d, 30d"
|
|
9048
|
+
},
|
|
9049
|
+
{
|
|
9050
|
+
flags: "--json",
|
|
9051
|
+
description: "Output raw JSON only (no decorative logging)"
|
|
9052
|
+
}
|
|
9053
|
+
],
|
|
9054
|
+
loader: "../quality/retro.ts",
|
|
9055
|
+
exportName: "retro"
|
|
9056
|
+
},
|
|
9057
|
+
// ---------------------------------------------------------------------------
|
|
9058
|
+
// Other
|
|
9059
|
+
// ---------------------------------------------------------------------------
|
|
9060
|
+
{
|
|
9061
|
+
name: "test",
|
|
9062
|
+
description: "Run tests across packages and apps",
|
|
9063
|
+
category: "other",
|
|
9064
|
+
options: [
|
|
9065
|
+
{
|
|
9066
|
+
flags: "-p, --package <package>",
|
|
9067
|
+
description: "test a specific package (e.g., expo, core)"
|
|
9068
|
+
},
|
|
9069
|
+
{ flags: "-a, --app <app>", description: "test a specific app" },
|
|
9070
|
+
{ flags: "-w, --watch", description: "run tests in watch mode" },
|
|
9071
|
+
{ flags: "-c, --coverage", description: "generate coverage report" },
|
|
9072
|
+
{ flags: "--ui", description: "open Vitest UI" },
|
|
9073
|
+
{
|
|
9074
|
+
flags: "--all",
|
|
9075
|
+
description: "run all tests from root (uses root vitest.config.ts)"
|
|
9076
|
+
}
|
|
9077
|
+
],
|
|
9078
|
+
loader: "../quality/test.ts"
|
|
9079
|
+
},
|
|
9080
|
+
{
|
|
9081
|
+
name: "test:e2e",
|
|
9082
|
+
description: "Run Playwright E2E tests in apps/e2e-test",
|
|
9083
|
+
category: "other",
|
|
9084
|
+
options: [
|
|
9085
|
+
{ flags: "--ui", description: "open Playwright UI mode" },
|
|
9086
|
+
{ flags: "--headed", description: "run tests in headed browser" }
|
|
9087
|
+
],
|
|
9088
|
+
loader: "../quality/test-e2e.ts"
|
|
9089
|
+
},
|
|
9090
|
+
{
|
|
9091
|
+
name: "test:uat [apps...]",
|
|
9092
|
+
description: "Run apps' Playwright e2e suites on one throwaway Supabase stack (own project_id, ports and volumes; torn down afterwards), from migrations or a read-only copy of live. Works in consumer projects and the monorepo; reads e2e/uat.json",
|
|
9093
|
+
category: "other",
|
|
9094
|
+
appCommand: true,
|
|
9095
|
+
options: [
|
|
9096
|
+
{ flags: "-a, --app <app>", description: "app to test (same as one positional)" },
|
|
9097
|
+
{
|
|
9098
|
+
flags: "--keep",
|
|
9099
|
+
description: "keep the throwaway stack and workdir after the run"
|
|
9100
|
+
},
|
|
9101
|
+
{
|
|
9102
|
+
flags: "--from <source>",
|
|
9103
|
+
description: "database start: migrations (empty database + every migration) or live (read-only copy of database.projectRef + the migrations live has not applied); default: database.from in e2e/uat.json, else migrations"
|
|
9104
|
+
},
|
|
9105
|
+
{
|
|
9106
|
+
flags: "--serve",
|
|
9107
|
+
description: "after the tests, keep the stack and app servers up for manual testing until Ctrl-C / SIGTERM"
|
|
9108
|
+
},
|
|
9109
|
+
{ flags: "--skip-tests", description: "do not run Playwright (with --serve or --keep)" },
|
|
9110
|
+
{ flags: "--headed", description: "run tests in headed browser" },
|
|
9111
|
+
{ flags: "--ui", description: "open Playwright UI mode" },
|
|
9112
|
+
{ flags: "--grep <pattern>", description: "only run tests matching the pattern" }
|
|
9113
|
+
],
|
|
9114
|
+
loader: "../quality/test-uat.ts"
|
|
9115
|
+
},
|
|
9116
|
+
{
|
|
9117
|
+
name: "fix-turbo",
|
|
9118
|
+
description: "Fix Turborepo binary platform mismatch (Windows/WSL/Linux)",
|
|
9119
|
+
category: "other",
|
|
9120
|
+
loader: "../maintenance/fix-turbo.ts",
|
|
9121
|
+
exportName: "fixTurbo"
|
|
9122
|
+
},
|
|
9123
|
+
{
|
|
9124
|
+
name: "zof",
|
|
9125
|
+
description: "Nuclear cache clear + fresh bundle + tarball test",
|
|
9126
|
+
category: "other",
|
|
9127
|
+
options: [
|
|
9128
|
+
{
|
|
9129
|
+
flags: "--skip-bundle",
|
|
9130
|
+
description: "Skip bundling (only clear caches)"
|
|
9131
|
+
},
|
|
9132
|
+
{
|
|
9133
|
+
flags: "--skip-test",
|
|
9134
|
+
description: "Skip ../test/ cleanup and reinstall"
|
|
9135
|
+
},
|
|
9136
|
+
{
|
|
9137
|
+
flags: "--cleanup",
|
|
9138
|
+
description: "Clean up tarballs after install (default: keep for testing)"
|
|
9139
|
+
},
|
|
9140
|
+
{
|
|
9141
|
+
flags: "--fast",
|
|
9142
|
+
description: "Fast mode: skip cache clearing (for iterative testing)"
|
|
9143
|
+
}
|
|
9144
|
+
],
|
|
9145
|
+
loader: "../maintenance/ZeOneOf"
|
|
9146
|
+
},
|
|
9147
|
+
{
|
|
9148
|
+
name: "wai",
|
|
9149
|
+
description: "Output WAI-WAY activation prompt for AI agents",
|
|
9150
|
+
alias: "wai-way",
|
|
9151
|
+
category: "other",
|
|
9152
|
+
public: true,
|
|
9153
|
+
options: [
|
|
9154
|
+
{ flags: "-w, --workflow", description: "Show workflow summary only" },
|
|
9155
|
+
{ flags: "-c, --copy", description: "Copy prompt to clipboard" }
|
|
9156
|
+
],
|
|
9157
|
+
loader: "../cli/wai.ts",
|
|
9158
|
+
exportName: "wai"
|
|
9159
|
+
},
|
|
9160
|
+
{
|
|
9161
|
+
name: "agent-setup",
|
|
9162
|
+
description: "Configure local and global agents to connect to the DoNotDev Intelligence Engine (MCP)",
|
|
9163
|
+
alias: "agent",
|
|
9164
|
+
category: "other",
|
|
9165
|
+
public: true,
|
|
9166
|
+
wrapperFile: "agent-setup",
|
|
9167
|
+
exportName: "agentSetup",
|
|
9168
|
+
loader: "../cli/agent-setup.ts"
|
|
9169
|
+
}
|
|
9170
|
+
];
|
|
9171
|
+
}
|
|
9172
|
+
});
|
|
9173
|
+
|
|
9174
|
+
// packages/tooling/src/utils/cli-args.ts
|
|
9175
|
+
var APP_COMMANDS;
|
|
9176
|
+
var init_cli_args = __esm({
|
|
9177
|
+
"packages/tooling/src/utils/cli-args.ts"() {
|
|
9178
|
+
"use strict";
|
|
9179
|
+
init_utils2();
|
|
9180
|
+
init_command_registry();
|
|
9181
|
+
APP_COMMANDS = getAppCommandNames();
|
|
9182
|
+
}
|
|
9183
|
+
});
|
|
9184
|
+
|
|
9185
|
+
// packages/tooling/src/utils/cli-input.ts
|
|
9186
|
+
var init_cli_input = __esm({
|
|
9187
|
+
"packages/tooling/src/utils/cli-input.ts"() {
|
|
9188
|
+
"use strict";
|
|
9189
|
+
init_utils2();
|
|
9190
|
+
init_dist5();
|
|
9191
|
+
}
|
|
9192
|
+
});
|
|
9193
|
+
|
|
9194
|
+
// packages/tooling/src/utils/cli-tools.ts
|
|
9195
|
+
import { spawnSync } from "node:child_process";
|
|
9196
|
+
var init_cli_tools = __esm({
|
|
9197
|
+
"packages/tooling/src/utils/cli-tools.ts"() {
|
|
9198
|
+
"use strict";
|
|
9199
|
+
init_utils2();
|
|
9200
|
+
init_dist5();
|
|
9201
|
+
}
|
|
9202
|
+
});
|
|
9203
|
+
|
|
9204
|
+
// packages/tooling/src/utils/create-utils.ts
|
|
9205
|
+
var RESERVED_APP_NAMES;
|
|
9206
|
+
var init_create_utils = __esm({
|
|
9207
|
+
"packages/tooling/src/utils/create-utils.ts"() {
|
|
9208
|
+
"use strict";
|
|
9209
|
+
init_utils2();
|
|
9210
|
+
RESERVED_APP_NAMES = ["demo", "dndev"];
|
|
9211
|
+
}
|
|
9212
|
+
});
|
|
9213
|
+
|
|
9214
|
+
// packages/tooling/src/utils/matrix.ts
|
|
9215
|
+
import { createRequire as createRequire4 } from "node:module";
|
|
9216
|
+
var init_matrix = __esm({
|
|
9217
|
+
"packages/tooling/src/utils/matrix.ts"() {
|
|
9218
|
+
"use strict";
|
|
9219
|
+
init_utils2();
|
|
9220
|
+
}
|
|
9221
|
+
});
|
|
9222
|
+
|
|
9223
|
+
// packages/tooling/src/utils/package-deps.ts
|
|
9224
|
+
var init_package_deps = __esm({
|
|
9225
|
+
"packages/tooling/src/utils/package-deps.ts"() {
|
|
9226
|
+
"use strict";
|
|
9227
|
+
init_utils2();
|
|
9228
|
+
}
|
|
9229
|
+
});
|
|
9230
|
+
|
|
9231
|
+
// packages/tooling/src/utils/package-validators.ts
|
|
9232
|
+
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
9233
|
+
var init_package_validators = __esm({
|
|
9234
|
+
"packages/tooling/src/utils/package-validators.ts"() {
|
|
9235
|
+
"use strict";
|
|
9236
|
+
init_utils2();
|
|
9237
|
+
}
|
|
9238
|
+
});
|
|
9239
|
+
|
|
9240
|
+
// packages/tooling/src/utils/scaffolding-questionnaire.ts
|
|
9241
|
+
var PROJECT_QUESTIONNAIRE;
|
|
9242
|
+
var init_scaffolding_questionnaire = __esm({
|
|
9243
|
+
"packages/tooling/src/utils/scaffolding-questionnaire.ts"() {
|
|
9244
|
+
"use strict";
|
|
9245
|
+
init_utils2();
|
|
9246
|
+
init_create_utils();
|
|
9247
|
+
PROJECT_QUESTIONNAIRE = [
|
|
9248
|
+
{
|
|
9249
|
+
id: "projectName",
|
|
9250
|
+
question: "Project name",
|
|
9251
|
+
type: "input",
|
|
9252
|
+
defaultValue: "my-project"
|
|
9253
|
+
},
|
|
9254
|
+
{
|
|
9255
|
+
id: "appNames",
|
|
9256
|
+
question: `App name(s) (comma-separated for multiple, e.g., web, admin) - '${RESERVED_APP_NAMES.join("', '")}' reserved`,
|
|
9257
|
+
type: "input",
|
|
9258
|
+
defaultValue: "web"
|
|
9259
|
+
}
|
|
9260
|
+
];
|
|
9261
|
+
}
|
|
9262
|
+
});
|
|
9263
|
+
|
|
9264
|
+
// packages/tooling/src/utils/spawn-utils.ts
|
|
9265
|
+
import {
|
|
9266
|
+
spawn,
|
|
9267
|
+
spawnSync as spawnSync3,
|
|
9268
|
+
execSync
|
|
9269
|
+
} from "node:child_process";
|
|
9270
|
+
import { platform } from "node:os";
|
|
9271
|
+
var init_spawn_utils = __esm({
|
|
9272
|
+
"packages/tooling/src/utils/spawn-utils.ts"() {
|
|
9273
|
+
"use strict";
|
|
9274
|
+
init_utils2();
|
|
9275
|
+
}
|
|
9276
|
+
});
|
|
9277
|
+
|
|
9278
|
+
// packages/tooling/src/utils/index.ts
|
|
9279
|
+
var init_utils3 = __esm({
|
|
9280
|
+
"packages/tooling/src/utils/index.ts"() {
|
|
9281
|
+
"use strict";
|
|
9282
|
+
init_utils2();
|
|
9283
|
+
init_app_detection();
|
|
9284
|
+
init_app_selector();
|
|
9285
|
+
init_cli_args();
|
|
9286
|
+
init_cli_input();
|
|
9287
|
+
init_cli_output();
|
|
9288
|
+
init_cli_tools();
|
|
9289
|
+
init_create_utils();
|
|
9290
|
+
init_errors();
|
|
9291
|
+
init_matrix();
|
|
9292
|
+
init_package_deps();
|
|
9293
|
+
init_package_paths();
|
|
9294
|
+
init_package_validators();
|
|
9295
|
+
init_pathResolver();
|
|
9296
|
+
init_scaffolding_questionnaire();
|
|
9297
|
+
init_spawn_utils();
|
|
9298
|
+
}
|
|
9299
|
+
});
|
|
9300
|
+
|
|
8258
9301
|
// packages/cli/src/bin/commands/type-check.ts
|
|
8259
9302
|
init_utils2();
|
|
8260
9303
|
|
|
@@ -8263,14 +9306,16 @@ init_utils2();
|
|
|
8263
9306
|
|
|
8264
9307
|
// packages/tooling/src/cli/index.ts
|
|
8265
9308
|
init_utils2();
|
|
9309
|
+
init_create_utils();
|
|
8266
9310
|
|
|
8267
9311
|
// packages/tooling/src/quality/type-check.ts
|
|
8268
9312
|
init_utils2();
|
|
8269
|
-
|
|
8270
|
-
import { EOL as EOL2 } from "node:os";
|
|
9313
|
+
init_utils3();
|
|
8271
9314
|
init_errors();
|
|
8272
9315
|
init_pathResolver();
|
|
8273
9316
|
init_type_guards();
|
|
9317
|
+
import { spawn as spawn2 } from "node:child_process";
|
|
9318
|
+
import { EOL as EOL2 } from "node:os";
|
|
8274
9319
|
var PRIVATE_CORE_PACKAGES = [
|
|
8275
9320
|
"@donotdev/types",
|
|
8276
9321
|
"@donotdev/utils",
|
|
@@ -8369,12 +9414,6 @@ function discoverPackages(repoRoot, filter) {
|
|
|
8369
9414
|
normalizePath(repoRoot) + "/",
|
|
8370
9415
|
""
|
|
8371
9416
|
);
|
|
8372
|
-
if (filter) {
|
|
8373
|
-
const matches = packageName === filter || packageName.includes(filter) || relativePath.includes(filter) || normalizePath(packageName).includes(normalizePath(filter)) || normalizePath(relativePath).includes(normalizePath(filter));
|
|
8374
|
-
if (!matches) {
|
|
8375
|
-
continue;
|
|
8376
|
-
}
|
|
8377
|
-
}
|
|
8378
9417
|
packages.push({
|
|
8379
9418
|
name: packageName,
|
|
8380
9419
|
path: packageDir,
|
|
@@ -8384,7 +9423,15 @@ function discoverPackages(repoRoot, filter) {
|
|
|
8384
9423
|
continue;
|
|
8385
9424
|
}
|
|
8386
9425
|
}
|
|
8387
|
-
|
|
9426
|
+
const normalizedRoot = normalizePath(repoRoot);
|
|
9427
|
+
const workspacePackages = packages.some(
|
|
9428
|
+
(pkg) => normalizePath(pkg.path) !== normalizedRoot
|
|
9429
|
+
) ? packages.filter((pkg) => normalizePath(pkg.path) !== normalizedRoot) : packages;
|
|
9430
|
+
const selected = filter ? workspacePackages.filter((pkg) => {
|
|
9431
|
+
const { name: packageName, packagePath: relativePath } = pkg;
|
|
9432
|
+
return packageName === filter || packageName.includes(filter) || relativePath.includes(filter) || normalizePath(packageName).includes(normalizePath(filter)) || normalizePath(relativePath).includes(normalizePath(filter));
|
|
9433
|
+
}) : workspacePackages;
|
|
9434
|
+
return selected.sort((a2, b) => a2.name.localeCompare(b.name));
|
|
8388
9435
|
}
|
|
8389
9436
|
function parseTypeScriptErrors(output) {
|
|
8390
9437
|
const lines = output.split("\n");
|
|
@@ -8421,7 +9468,7 @@ function typeCheckPackage(pkg, repoRoot, verbose, progressSpinner) {
|
|
|
8421
9468
|
let stdout2 = "";
|
|
8422
9469
|
let stderr = "";
|
|
8423
9470
|
let hasStarted = false;
|
|
8424
|
-
const child =
|
|
9471
|
+
const child = spawn2("bun", ["run", "type-check"], {
|
|
8425
9472
|
cwd: pkg.path,
|
|
8426
9473
|
stdio: "pipe"
|
|
8427
9474
|
});
|
|
@@ -8434,10 +9481,10 @@ function typeCheckPackage(pkg, repoRoot, verbose, progressSpinner) {
|
|
|
8434
9481
|
);
|
|
8435
9482
|
}
|
|
8436
9483
|
}
|
|
8437
|
-
const
|
|
8438
|
-
stdout2 +=
|
|
9484
|
+
const text2 = data.toString("utf8");
|
|
9485
|
+
stdout2 += text2;
|
|
8439
9486
|
if (verbose) {
|
|
8440
|
-
const lines =
|
|
9487
|
+
const lines = text2.split("\n");
|
|
8441
9488
|
for (const line of lines) {
|
|
8442
9489
|
if (line.trim() && (line.includes("error TS") || line.includes("error:"))) {
|
|
8443
9490
|
log2.error(` ${line.trim()}`);
|
|
@@ -8446,10 +9493,10 @@ function typeCheckPackage(pkg, repoRoot, verbose, progressSpinner) {
|
|
|
8446
9493
|
}
|
|
8447
9494
|
});
|
|
8448
9495
|
child.stderr?.on("data", (data) => {
|
|
8449
|
-
const
|
|
8450
|
-
stderr +=
|
|
9496
|
+
const text2 = data.toString("utf8");
|
|
9497
|
+
stderr += text2;
|
|
8451
9498
|
if (verbose) {
|
|
8452
|
-
const trimmed =
|
|
9499
|
+
const trimmed = text2.trim();
|
|
8453
9500
|
if (trimmed && !trimmed.startsWith("$ ") && !trimmed.match(/^bun run /)) {
|
|
8454
9501
|
log2.error(` ${trimmed}`);
|
|
8455
9502
|
}
|