@donotdev/cli 0.0.36 → 0.1.0
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/LICENSE.md +21 -48
- package/dependencies-matrix.json +24 -24
- package/dist/bin/commands/agent-setup.js +6965 -125
- package/dist/bin/commands/build.js +6 -3
- package/dist/bin/commands/bump.js +35 -15
- package/dist/bin/commands/cacheout.js +19 -3
- package/dist/bin/commands/coach.js +6 -3
- package/dist/bin/commands/create-app.js +18 -4
- package/dist/bin/commands/create-project.js +19 -5
- package/dist/bin/commands/db.js +1700 -3786
- package/dist/bin/commands/deploy.js +144 -98
- package/dist/bin/commands/dev.js +8 -7
- package/dist/bin/commands/doctor.js +6 -3
- package/dist/bin/commands/emu.js +8 -7
- package/dist/bin/commands/format.js +7 -5
- package/dist/bin/commands/get-demo.js +18 -4
- package/dist/bin/commands/make-admin.js +1809 -179
- package/dist/bin/commands/preview.js +8 -7
- package/dist/bin/commands/seed.js +1700 -3786
- package/dist/bin/commands/setup-cicd.js +6 -3
- package/dist/bin/commands/setup.js +23 -20
- package/dist/bin/commands/staging.js +144 -98
- package/dist/bin/commands/sync-secrets.js +6 -3
- package/dist/bin/commands/type-check.js +6 -3
- package/dist/bin/commands/wai.js +6 -3
- package/dist/bin/dndev.js +21 -1
- package/dist/bin/donotdev.js +21 -1
- package/dist/index.js +172 -107
- package/package.json +2 -2
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/functions-supabase/supabase/functions/.env.example +12 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +28 -0
- package/templates/root-consumer/.claude/commands/design.md.example +31 -0
- package/templates/root-consumer/.claude/commands/grill.md.example +33 -6
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +11 -5
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +2 -1
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
- package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
|
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
// node_modules/.bun/@clack+
|
|
166
|
+
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
167
167
|
import { stdin as j, stdout as M } from "node:process";
|
|
168
168
|
import * as g from "node:readline";
|
|
169
169
|
import O from "node:readline";
|
|
@@ -279,7 +279,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
|
|
|
279
279
|
}
|
|
280
280
|
var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, A, OD, PD, J, LD;
|
|
281
281
|
var init_dist = __esm({
|
|
282
|
-
"node_modules/.bun/@clack+
|
|
282
|
+
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
283
283
|
init_utils();
|
|
284
284
|
import_sisteransi = __toESM(require_src(), 1);
|
|
285
285
|
uD = DD();
|
|
@@ -7699,7 +7699,10 @@ var init_PathResolver = __esm({
|
|
|
7699
7699
|
*/
|
|
7700
7700
|
getEmptyCjsModulePath() {
|
|
7701
7701
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7702
|
-
if (!resolved)
|
|
7702
|
+
if (!resolved)
|
|
7703
|
+
throw new Error(
|
|
7704
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7705
|
+
);
|
|
7703
7706
|
return resolved;
|
|
7704
7707
|
}
|
|
7705
7708
|
// === PRIVATE METHODS ===
|
|
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
// node_modules/.bun/@clack+
|
|
166
|
+
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
167
167
|
import { stdin as j, stdout as M } from "node:process";
|
|
168
168
|
import * as g from "node:readline";
|
|
169
169
|
import O from "node:readline";
|
|
@@ -279,7 +279,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
|
|
|
279
279
|
}
|
|
280
280
|
var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, kD, $D, H, SD;
|
|
281
281
|
var init_dist = __esm({
|
|
282
|
-
"node_modules/.bun/@clack+
|
|
282
|
+
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
283
283
|
init_utils();
|
|
284
284
|
import_sisteransi = __toESM(require_src(), 1);
|
|
285
285
|
uD = DD();
|
|
@@ -7762,7 +7762,10 @@ var init_PathResolver = __esm({
|
|
|
7762
7762
|
*/
|
|
7763
7763
|
getEmptyCjsModulePath() {
|
|
7764
7764
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7765
|
-
if (!resolved)
|
|
7765
|
+
if (!resolved)
|
|
7766
|
+
throw new Error(
|
|
7767
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7768
|
+
);
|
|
7766
7769
|
return resolved;
|
|
7767
7770
|
}
|
|
7768
7771
|
// === PRIVATE METHODS ===
|
|
@@ -8140,14 +8143,25 @@ function flattenGroups(groups, options) {
|
|
|
8140
8143
|
const flat = {};
|
|
8141
8144
|
for (const group of Object.values(groups)) {
|
|
8142
8145
|
if (options?.skipRootExclude && group.rootExclude) continue;
|
|
8143
|
-
for (const [name, version] of Object.entries(group.packages
|
|
8146
|
+
for (const [name, version] of Object.entries(group.packages ?? {})) {
|
|
8144
8147
|
flat[name] = version;
|
|
8145
8148
|
}
|
|
8146
8149
|
}
|
|
8147
8150
|
return flat;
|
|
8148
8151
|
}
|
|
8149
8152
|
function resolveGroup(groupName, matrix) {
|
|
8150
|
-
|
|
8153
|
+
const group = matrix.groups[groupName];
|
|
8154
|
+
if (!group) return {};
|
|
8155
|
+
const result = {};
|
|
8156
|
+
if (group.includes) {
|
|
8157
|
+
for (const included of group.includes) {
|
|
8158
|
+
Object.assign(result, resolveGroup(included, matrix));
|
|
8159
|
+
}
|
|
8160
|
+
}
|
|
8161
|
+
if (group.packages) {
|
|
8162
|
+
Object.assign(result, group.packages);
|
|
8163
|
+
}
|
|
8164
|
+
return result;
|
|
8151
8165
|
}
|
|
8152
8166
|
function resolveGroups(groupNames, matrix) {
|
|
8153
8167
|
const result = {};
|
|
@@ -8272,9 +8286,10 @@ function syncDonotdevToMatrix(matrix, donotdevVersions, dryRun) {
|
|
|
8272
8286
|
changes.push({ pkg: pkgName, from: "N/A", to: `^${actualVersion}` });
|
|
8273
8287
|
continue;
|
|
8274
8288
|
}
|
|
8275
|
-
const
|
|
8289
|
+
const packages = group.packages ??= {};
|
|
8290
|
+
const matrixVersion = packages[pkgName];
|
|
8276
8291
|
if (!matrixVersion) {
|
|
8277
|
-
|
|
8292
|
+
packages[pkgName] = `^${actualVersion}`;
|
|
8278
8293
|
changes.push({ pkg: pkgName, from: "N/A", to: `^${actualVersion}` });
|
|
8279
8294
|
continue;
|
|
8280
8295
|
}
|
|
@@ -8285,7 +8300,7 @@ function syncDonotdevToMatrix(matrix, donotdevVersions, dryRun) {
|
|
|
8285
8300
|
from: matrixVersion,
|
|
8286
8301
|
to: `^${actualVersion}`
|
|
8287
8302
|
});
|
|
8288
|
-
|
|
8303
|
+
packages[pkgName] = `^${actualVersion}`;
|
|
8289
8304
|
}
|
|
8290
8305
|
}
|
|
8291
8306
|
if (changes.length > 0 && !dryRun) {
|
|
@@ -8688,11 +8703,18 @@ var SYNC_PATHS = [
|
|
|
8688
8703
|
"guides/**/*.json.example",
|
|
8689
8704
|
// Commands
|
|
8690
8705
|
".claude/commands/**/*.md.example",
|
|
8706
|
+
// Skills
|
|
8707
|
+
".claude/skills/**/*.md.example",
|
|
8708
|
+
".claude/skills/**/*.md",
|
|
8691
8709
|
// Agents
|
|
8692
8710
|
".claude/agents/**/*.md.example",
|
|
8711
|
+
// AI instructions (SSOT for agent behavior)
|
|
8712
|
+
"AI.md.example",
|
|
8713
|
+
"CLAUDE.md.example",
|
|
8714
|
+
".claude/CLAUDE.md.example",
|
|
8715
|
+
"GEMINI.md.example",
|
|
8693
8716
|
// Config files
|
|
8694
8717
|
".claude/mcp.json.example",
|
|
8695
|
-
"CLAUDE.md.example",
|
|
8696
8718
|
// MCP config
|
|
8697
8719
|
".cursor/mcp.json.example",
|
|
8698
8720
|
".mcp.json.example",
|
|
@@ -8702,6 +8724,8 @@ var SYNC_PATHS = [
|
|
|
8702
8724
|
var PRESERVE_IF_EXISTS = [
|
|
8703
8725
|
"CLAUDE.md",
|
|
8704
8726
|
// User may have customized
|
|
8727
|
+
"GEMINI.md",
|
|
8728
|
+
// User may have customized
|
|
8705
8729
|
"args.json"
|
|
8706
8730
|
// User/agent may have customized features
|
|
8707
8731
|
];
|
|
@@ -8899,9 +8923,7 @@ init_cli_output();
|
|
|
8899
8923
|
init_pathResolver();
|
|
8900
8924
|
async function queryNpmPackage(packageName) {
|
|
8901
8925
|
try {
|
|
8902
|
-
const res = await fetch(
|
|
8903
|
-
`https://registry.npmjs.org/${packageName}/latest`
|
|
8904
|
-
);
|
|
8926
|
+
const res = await fetch(`https://registry.npmjs.org/${packageName}/latest`);
|
|
8905
8927
|
if (!res.ok) return null;
|
|
8906
8928
|
return await res.json();
|
|
8907
8929
|
} catch {
|
|
@@ -9293,9 +9315,7 @@ async function main(options = {}) {
|
|
|
9293
9315
|
);
|
|
9294
9316
|
summary.push(`Updated ${updatedCount} package.json file(s)`);
|
|
9295
9317
|
if (syncedPins > 0) {
|
|
9296
|
-
summary.push(
|
|
9297
|
-
`Synced ${syncedPins} override/resolution pin(s)`
|
|
9298
|
-
);
|
|
9318
|
+
summary.push(`Synced ${syncedPins} override/resolution pin(s)`);
|
|
9299
9319
|
}
|
|
9300
9320
|
}
|
|
9301
9321
|
if (shouldRemoveDeprecated) {
|
|
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
// node_modules/.bun/@clack+
|
|
166
|
+
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
167
167
|
import { stdin as j, stdout as M } from "node:process";
|
|
168
168
|
import { Writable as X } from "node:stream";
|
|
169
169
|
function DD({ onlyFirst: e2 = false } = {}) {
|
|
@@ -204,7 +204,7 @@ function rD() {
|
|
|
204
204
|
}
|
|
205
205
|
var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
|
|
206
206
|
var init_dist = __esm({
|
|
207
|
-
"node_modules/.bun/@clack+
|
|
207
|
+
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
208
208
|
init_utils();
|
|
209
209
|
import_sisteransi = __toESM(require_src(), 1);
|
|
210
210
|
uD = DD();
|
|
@@ -7311,7 +7311,10 @@ var init_PathResolver = __esm({
|
|
|
7311
7311
|
*/
|
|
7312
7312
|
getEmptyCjsModulePath() {
|
|
7313
7313
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7314
|
-
if (!resolved)
|
|
7314
|
+
if (!resolved)
|
|
7315
|
+
throw new Error(
|
|
7316
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7317
|
+
);
|
|
7315
7318
|
return resolved;
|
|
7316
7319
|
}
|
|
7317
7320
|
// === PRIVATE METHODS ===
|
|
@@ -7524,6 +7527,19 @@ async function findCacheItems(targetDir, verbose) {
|
|
|
7524
7527
|
check(joinPath(appPath, "node_modules", ".vite"));
|
|
7525
7528
|
check(joinPath(appPath, "tsconfig.tsbuildinfo"));
|
|
7526
7529
|
check(joinPath(appPath, "tsconfig.build.tsbuildinfo"));
|
|
7530
|
+
check(joinPath(appPath, "public", "route-manifest.json"));
|
|
7531
|
+
check(joinPath(appPath, "public", "theme-manifest.json"));
|
|
7532
|
+
check(joinPath(appPath, "public", "i18n-manifest.json"));
|
|
7533
|
+
check(joinPath(appPath, "public", "asset-manifest.json"));
|
|
7534
|
+
check(joinPath(appPath, "public", "seo-manifest.json"));
|
|
7535
|
+
check(joinPath(appPath, "public", "pwa-manifest.json"));
|
|
7536
|
+
check(joinPath(appPath, "public", "robots.txt"));
|
|
7537
|
+
check(joinPath(appPath, "public", "sitemap.xml"));
|
|
7538
|
+
check(joinPath(appPath, "public", "rss.xml"));
|
|
7539
|
+
check(joinPath(appPath, "public", "llms.txt"));
|
|
7540
|
+
check(joinPath(appPath, "public", "llms-full.txt"));
|
|
7541
|
+
check(joinPath(appPath, "public", "dndev-fonts.css"));
|
|
7542
|
+
check(joinPath(appPath, ".dndev-build"));
|
|
7527
7543
|
}
|
|
7528
7544
|
} catch (error2) {
|
|
7529
7545
|
}
|
|
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
// node_modules/.bun/@clack+
|
|
170
|
+
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
171
171
|
import { stdin as j, stdout as M } from "node:process";
|
|
172
172
|
import { Writable as X } from "node:stream";
|
|
173
173
|
function DD({ onlyFirst: e2 = false } = {}) {
|
|
@@ -208,7 +208,7 @@ function rD() {
|
|
|
208
208
|
}
|
|
209
209
|
var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
|
|
210
210
|
var init_dist = __esm({
|
|
211
|
-
"node_modules/.bun/@clack+
|
|
211
|
+
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
212
212
|
init_utils();
|
|
213
213
|
import_sisteransi = __toESM(require_src(), 1);
|
|
214
214
|
uD = DD();
|
|
@@ -7325,7 +7325,10 @@ var init_PathResolver = __esm({
|
|
|
7325
7325
|
*/
|
|
7326
7326
|
getEmptyCjsModulePath() {
|
|
7327
7327
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7328
|
-
if (!resolved)
|
|
7328
|
+
if (!resolved)
|
|
7329
|
+
throw new Error(
|
|
7330
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7331
|
+
);
|
|
7329
7332
|
return resolved;
|
|
7330
7333
|
}
|
|
7331
7334
|
// === PRIVATE METHODS ===
|
|
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
// node_modules/.bun/@clack+
|
|
170
|
+
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
171
171
|
import { stdin as j, stdout as M } from "node:process";
|
|
172
172
|
import * as g from "node:readline";
|
|
173
173
|
import O from "node:readline";
|
|
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
|
|
|
283
283
|
}
|
|
284
284
|
var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
|
|
285
285
|
var init_dist = __esm({
|
|
286
|
-
"node_modules/.bun/@clack+
|
|
286
|
+
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
287
287
|
init_utils();
|
|
288
288
|
import_sisteransi = __toESM(require_src(), 1);
|
|
289
289
|
import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -7712,7 +7712,10 @@ var init_PathResolver = __esm({
|
|
|
7712
7712
|
*/
|
|
7713
7713
|
getEmptyCjsModulePath() {
|
|
7714
7714
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7715
|
-
if (!resolved)
|
|
7715
|
+
if (!resolved)
|
|
7716
|
+
throw new Error(
|
|
7717
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7718
|
+
);
|
|
7716
7719
|
return resolved;
|
|
7717
7720
|
}
|
|
7718
7721
|
// === PRIVATE METHODS ===
|
|
@@ -8448,7 +8451,18 @@ function loadMatrix(mode) {
|
|
|
8448
8451
|
return cachedMatrix;
|
|
8449
8452
|
}
|
|
8450
8453
|
function resolveGroup(groupName, matrix) {
|
|
8451
|
-
|
|
8454
|
+
const group = matrix.groups[groupName];
|
|
8455
|
+
if (!group) return {};
|
|
8456
|
+
const result = {};
|
|
8457
|
+
if (group.includes) {
|
|
8458
|
+
for (const included of group.includes) {
|
|
8459
|
+
Object.assign(result, resolveGroup(included, matrix));
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
if (group.packages) {
|
|
8463
|
+
Object.assign(result, group.packages);
|
|
8464
|
+
}
|
|
8465
|
+
return result;
|
|
8452
8466
|
}
|
|
8453
8467
|
function resolveGroups(groupNames, matrix) {
|
|
8454
8468
|
const result = {};
|
|
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
// node_modules/.bun/@clack+
|
|
170
|
+
// node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
171
171
|
import { stdin as j, stdout as M } from "node:process";
|
|
172
172
|
import * as g from "node:readline";
|
|
173
173
|
import O from "node:readline";
|
|
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
|
|
|
283
283
|
}
|
|
284
284
|
var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
|
|
285
285
|
var init_dist = __esm({
|
|
286
|
-
"node_modules/.bun/@clack+
|
|
286
|
+
"node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
|
|
287
287
|
init_utils();
|
|
288
288
|
import_sisteransi = __toESM(require_src(), 1);
|
|
289
289
|
import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -7854,7 +7854,10 @@ var init_PathResolver = __esm({
|
|
|
7854
7854
|
*/
|
|
7855
7855
|
getEmptyCjsModulePath() {
|
|
7856
7856
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7857
|
-
if (!resolved)
|
|
7857
|
+
if (!resolved)
|
|
7858
|
+
throw new Error(
|
|
7859
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7860
|
+
);
|
|
7858
7861
|
return resolved;
|
|
7859
7862
|
}
|
|
7860
7863
|
// === PRIVATE METHODS ===
|
|
@@ -8769,7 +8772,18 @@ function loadMatrix(mode) {
|
|
|
8769
8772
|
return cachedMatrix;
|
|
8770
8773
|
}
|
|
8771
8774
|
function resolveGroup(groupName, matrix) {
|
|
8772
|
-
|
|
8775
|
+
const group = matrix.groups[groupName];
|
|
8776
|
+
if (!group) return {};
|
|
8777
|
+
const result = {};
|
|
8778
|
+
if (group.includes) {
|
|
8779
|
+
for (const included of group.includes) {
|
|
8780
|
+
Object.assign(result, resolveGroup(included, matrix));
|
|
8781
|
+
}
|
|
8782
|
+
}
|
|
8783
|
+
if (group.packages) {
|
|
8784
|
+
Object.assign(result, group.packages);
|
|
8785
|
+
}
|
|
8786
|
+
return result;
|
|
8773
8787
|
}
|
|
8774
8788
|
function resolveGroups(groupNames, matrix) {
|
|
8775
8789
|
const result = {};
|
|
@@ -9845,7 +9859,7 @@ async function main(_options, name) {
|
|
|
9845
9859
|
const relativeMonorepoPath = executionMode === "development" ? calculateRelativePath(projectDirNormalized, monorepoRoot) : "";
|
|
9846
9860
|
const primaryPlatform = Object.values(appConfigs).find(
|
|
9847
9861
|
(c) => c.backend !== "none"
|
|
9848
|
-
)?.backend ?? "
|
|
9862
|
+
)?.backend ?? "none";
|
|
9849
9863
|
const hasVercel = Object.values(appConfigs).some(
|
|
9850
9864
|
(c) => c.host === "vercel"
|
|
9851
9865
|
);
|