express-file-cluster 0.9.6 → 0.10.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/dist/auth/index.cjs +7 -6
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +5 -5
- package/dist/chunk-3SWI46YK.js +74 -0
- package/dist/chunk-3SWI46YK.js.map +1 -0
- package/dist/{chunk-DCJOWFVD.cjs → chunk-4GHK27JA.cjs} +3 -3
- package/dist/{chunk-DCJOWFVD.cjs.map → chunk-4GHK27JA.cjs.map} +1 -1
- package/dist/{chunk-NI2BNGGV.js → chunk-5LPRKZPB.js} +2 -2
- package/dist/chunk-74BSJXWD.cjs +220 -0
- package/dist/chunk-74BSJXWD.cjs.map +1 -0
- package/dist/{chunk-6KHBJOLB.cjs → chunk-7BC3AN7R.cjs} +14 -14
- package/dist/{chunk-6KHBJOLB.cjs.map → chunk-7BC3AN7R.cjs.map} +1 -1
- package/dist/chunk-AGOYTFRO.cjs +42 -0
- package/dist/chunk-AGOYTFRO.cjs.map +1 -0
- package/dist/{chunk-HBYSKULC.js → chunk-B6MB6HEG.js} +5 -1
- package/dist/chunk-B6MB6HEG.js.map +1 -0
- package/dist/{chunk-OFA7OGN5.js → chunk-BG4A7Z32.js} +176 -7
- package/dist/chunk-BG4A7Z32.js.map +1 -0
- package/dist/{chunk-45BWAR6P.js → chunk-C2FOZ7ME.js} +4 -4
- package/dist/chunk-CGY7JU4Y.cjs +8 -0
- package/dist/chunk-CGY7JU4Y.cjs.map +1 -0
- package/dist/{chunk-BBSZLGZW.js → chunk-DN4TCGYB.js} +43 -14
- package/dist/chunk-DN4TCGYB.js.map +1 -0
- package/dist/{chunk-TI24L4XE.cjs → chunk-H2PVWCWC.cjs} +6 -2
- package/dist/chunk-H2PVWCWC.cjs.map +1 -0
- package/dist/{chunk-TYCYYLLM.cjs → chunk-IUZ6A7PB.cjs} +20 -53
- package/dist/chunk-IUZ6A7PB.cjs.map +1 -0
- package/dist/{chunk-DUADUR6R.cjs → chunk-JP36TLL4.cjs} +171 -14
- package/dist/chunk-JP36TLL4.cjs.map +1 -0
- package/dist/chunk-KLWL7XSC.js +220 -0
- package/dist/chunk-KLWL7XSC.js.map +1 -0
- package/dist/{chunk-QL6EWT4B.cjs → chunk-M53GODCX.cjs} +44 -15
- package/dist/chunk-M53GODCX.cjs.map +1 -0
- package/dist/{chunk-7ZESZG3J.js → chunk-MUVO7MGS.js} +4 -4
- package/dist/{chunk-VWSUQKCJ.cjs → chunk-R2K7AFIB.cjs} +286 -117
- package/dist/chunk-R2K7AFIB.cjs.map +1 -0
- package/dist/{chunk-ULWNHN6P.js → chunk-RETV3GKE.js} +9 -42
- package/dist/chunk-RETV3GKE.js.map +1 -0
- package/dist/{chunk-7YEX4MQV.cjs → chunk-RPL2IFWK.cjs} +46 -7
- package/dist/chunk-RPL2IFWK.cjs.map +1 -0
- package/dist/{chunk-FMA76PRH.cjs → chunk-TBIVIR6L.cjs} +15 -15
- package/dist/{chunk-FMA76PRH.cjs.map → chunk-TBIVIR6L.cjs.map} +1 -1
- package/dist/{chunk-73XJUT2S.js → chunk-V73R76I4.js} +162 -5
- package/dist/chunk-V73R76I4.js.map +1 -0
- package/dist/chunk-XPY5TQDK.js +42 -0
- package/dist/chunk-XPY5TQDK.js.map +1 -0
- package/dist/{chunk-RGT4ZVHL.cjs → chunk-Y4NKIXUL.cjs} +110 -55
- package/dist/chunk-Y4NKIXUL.cjs.map +1 -0
- package/dist/{chunk-2SETEVMO.js → chunk-Y75V5FCU.js} +100 -45
- package/dist/chunk-Y75V5FCU.js.map +1 -0
- package/dist/cli/db-runner.cjs +2059 -126
- package/dist/cli/db-runner.cjs.map +1 -1
- package/dist/cli/db-runner.js +2034 -102
- package/dist/cli/db-runner.js.map +1 -1
- package/dist/cli/index.cjs +50 -29
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +39 -21
- package/dist/cli/index.js.map +1 -1
- package/dist/docs/api-reference/auth.md +23 -0
- package/dist/docs/api-reference/collection.md +44 -1
- package/dist/docs/api-reference/compose.md +1 -1
- package/dist/docs/api-reference/db.md +8 -0
- package/dist/docs/api-reference/ignite.md +13 -1
- package/dist/docs/api-reference/testing.md +26 -0
- package/dist/docs/api-reference/types.md +99 -0
- package/dist/docs/cli/add.md +2 -2
- package/dist/docs/cli/db.md +2 -2
- package/dist/docs/core-concepts/background-tasks.md +6 -3
- package/dist/docs/core-concepts/file-based-routing.md +2 -0
- package/dist/docs/core-concepts/middleware.md +2 -2
- package/dist/docs/getting-started/index.md +6 -1
- package/dist/docs/guides/authentication.md +33 -0
- package/dist/docs/guides/caching.md +34 -1
- package/dist/docs/guides/database.md +17 -0
- package/dist/docs/guides/environment-variables.md +6 -0
- package/dist/docs/guides/feature-matrix.md +58 -0
- package/dist/docs/guides/generated-portals.md +3 -1
- package/dist/docs/guides/logging.md +17 -0
- package/dist/docs/guides/migrations.md +26 -3
- package/dist/docs/guides/testing.md +31 -0
- package/dist/docs/guides/which-api.md +2 -2
- package/dist/docs/index.md +4 -1
- package/dist/docs/skills/SKILL.md +5 -1
- package/dist/docs/skills/api-surface.md +25 -4
- package/dist/docs/skills/auth-internals.md +14 -1
- package/dist/docs/skills/pre-flight.md +6 -0
- package/dist/docs/skills/routing-rules.md +1 -1
- package/dist/docs/skills/tasks-internals.md +4 -3
- package/dist/docs/skills/what-not-to-invent.md +13 -4
- package/dist/docs/versioning.md +1 -1
- package/dist/index.cjs +135 -255
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +228 -3
- package/dist/index.d.ts +228 -3
- package/dist/index.js +96 -217
- package/dist/index.js.map +1 -1
- package/dist/pgboss-backend-4X2YT4RB.js +14 -0
- package/dist/pgboss-backend-UXQ3O2WT.cjs +15 -0
- package/dist/pgboss-backend-UXQ3O2WT.cjs.map +1 -0
- package/dist/registry/index.json +39 -3
- package/dist/registry/js-mongo/account-security.json +1 -1
- package/dist/registry/js-mongo/admin-users.json +1 -1
- package/dist/registry/js-mongo/auth.json +1 -1
- package/dist/registry/js-mongo/auth@apple.json +1 -1
- package/dist/registry/js-mongo/auth@google.json +1 -1
- package/dist/registry/js-mongo/forgot-password.json +1 -1
- package/dist/registry/js-mongo/user-profile.json +1 -1
- package/dist/registry/js-mongo-collection/_base.json +1 -0
- package/dist/registry/js-mongo-collection/account-security.json +1 -0
- package/dist/registry/js-mongo-collection/account-settings.json +1 -0
- package/dist/registry/js-mongo-collection/admin-admins.json +1 -0
- package/dist/registry/js-mongo-collection/admin-analytics.json +1 -0
- package/dist/registry/js-mongo-collection/admin-billing.json +1 -0
- package/dist/registry/js-mongo-collection/admin-content.json +1 -0
- package/dist/registry/js-mongo-collection/admin-logs.json +1 -0
- package/dist/registry/js-mongo-collection/admin-support.json +1 -0
- package/dist/registry/js-mongo-collection/admin-system.json +1 -0
- package/dist/registry/js-mongo-collection/admin-users.json +1 -0
- package/dist/registry/js-mongo-collection/admin.json +1 -0
- package/dist/registry/js-mongo-collection/auth.json +1 -0
- package/dist/registry/js-mongo-collection/auth@apple.json +1 -0
- package/dist/registry/js-mongo-collection/auth@google.json +1 -0
- package/dist/registry/js-mongo-collection/billing.json +1 -0
- package/dist/registry/js-mongo-collection/email-client.json +1 -0
- package/dist/registry/js-mongo-collection/email-verification.json +1 -0
- package/dist/registry/js-mongo-collection/files.json +1 -0
- package/dist/registry/js-mongo-collection/forgot-password.json +1 -0
- package/dist/registry/js-mongo-collection/notifications.json +1 -0
- package/dist/registry/js-mongo-collection/support.json +1 -0
- package/dist/registry/js-mongo-collection/user-profile.json +1 -0
- package/dist/registry/js-pg-model/account-security.json +1 -1
- package/dist/registry/js-pg-model/admin-users.json +1 -1
- package/dist/registry/js-pg-model/auth.json +1 -1
- package/dist/registry/js-pg-model/auth@apple.json +1 -1
- package/dist/registry/js-pg-model/auth@google.json +1 -1
- package/dist/registry/js-pg-model/forgot-password.json +1 -1
- package/dist/registry/js-pg-model/user-profile.json +1 -1
- package/dist/registry/js-pg-table/account-security.json +1 -1
- package/dist/registry/js-pg-table/admin-users.json +1 -1
- package/dist/registry/js-pg-table/auth.json +1 -1
- package/dist/registry/js-pg-table/auth@apple.json +1 -1
- package/dist/registry/js-pg-table/auth@google.json +1 -1
- package/dist/registry/js-pg-table/forgot-password.json +1 -1
- package/dist/registry/js-pg-table/user-profile.json +1 -1
- package/dist/registry/ts-mongo/account-security.json +1 -1
- package/dist/registry/ts-mongo/admin-users.json +1 -1
- package/dist/registry/ts-mongo/auth.json +1 -1
- package/dist/registry/ts-mongo/auth@apple.json +1 -1
- package/dist/registry/ts-mongo/auth@google.json +1 -1
- package/dist/registry/ts-mongo/forgot-password.json +1 -1
- package/dist/registry/ts-mongo/user-profile.json +1 -1
- package/dist/registry/ts-mongo-collection/_base.json +1 -0
- package/dist/registry/ts-mongo-collection/account-security.json +1 -0
- package/dist/registry/ts-mongo-collection/account-settings.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-admins.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-analytics.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-billing.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-content.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-logs.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-support.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-system.json +1 -0
- package/dist/registry/ts-mongo-collection/admin-users.json +1 -0
- package/dist/registry/ts-mongo-collection/admin.json +1 -0
- package/dist/registry/ts-mongo-collection/auth.json +1 -0
- package/dist/registry/ts-mongo-collection/auth@apple.json +1 -0
- package/dist/registry/ts-mongo-collection/auth@google.json +1 -0
- package/dist/registry/ts-mongo-collection/billing.json +1 -0
- package/dist/registry/ts-mongo-collection/email-client.json +1 -0
- package/dist/registry/ts-mongo-collection/email-verification.json +1 -0
- package/dist/registry/ts-mongo-collection/files.json +1 -0
- package/dist/registry/ts-mongo-collection/forgot-password.json +1 -0
- package/dist/registry/ts-mongo-collection/notifications.json +1 -0
- package/dist/registry/ts-mongo-collection/support.json +1 -0
- package/dist/registry/ts-mongo-collection/user-profile.json +1 -0
- package/dist/registry/ts-pg-model/account-security.json +1 -1
- package/dist/registry/ts-pg-model/admin-users.json +1 -1
- package/dist/registry/ts-pg-model/auth.json +1 -1
- package/dist/registry/ts-pg-model/auth@apple.json +1 -1
- package/dist/registry/ts-pg-model/auth@google.json +1 -1
- package/dist/registry/ts-pg-model/forgot-password.json +1 -1
- package/dist/registry/ts-pg-model/user-profile.json +1 -1
- package/dist/registry/ts-pg-table/account-security.json +1 -1
- package/dist/registry/ts-pg-table/admin-users.json +1 -1
- package/dist/registry/ts-pg-table/auth.json +1 -1
- package/dist/registry/ts-pg-table/auth@apple.json +1 -1
- package/dist/registry/ts-pg-table/auth@google.json +1 -1
- package/dist/registry/ts-pg-table/forgot-password.json +1 -1
- package/dist/registry/ts-pg-table/user-profile.json +1 -1
- package/dist/tasks/index.cjs +5 -2
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.d.cts +4 -2
- package/dist/tasks/index.d.ts +4 -2
- package/dist/tasks/index.js +3 -1
- package/dist/testing-cjs.cjs +5 -0
- package/dist/testing.cjs +59 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +27 -0
- package/dist/testing.d.ts +27 -0
- package/dist/testing.js +58 -0
- package/dist/testing.js.map +1 -0
- package/dist/thread-runner.cjs +9 -0
- package/dist/thread-runner.cjs.map +1 -0
- package/dist/thread-runner.d.cts +3 -0
- package/dist/thread-runner.d.ts +3 -0
- package/dist/thread-runner.js +8 -0
- package/dist/thread-runner.js.map +1 -0
- package/dist/{types-DAsBKVM-.d.ts → types-CPMFTVXm.d.cts} +15 -1
- package/dist/{types-DAsBKVM-.d.cts → types-CPMFTVXm.d.ts} +15 -1
- package/package.json +6 -1
- package/dist/chunk-2SETEVMO.js.map +0 -1
- package/dist/chunk-73XJUT2S.js.map +0 -1
- package/dist/chunk-7YEX4MQV.cjs.map +0 -1
- package/dist/chunk-BBSZLGZW.js.map +0 -1
- package/dist/chunk-DUADUR6R.cjs.map +0 -1
- package/dist/chunk-HBYSKULC.js.map +0 -1
- package/dist/chunk-LJNSJFOL.js +0 -38
- package/dist/chunk-LJNSJFOL.js.map +0 -1
- package/dist/chunk-OFA7OGN5.js.map +0 -1
- package/dist/chunk-QL6EWT4B.cjs.map +0 -1
- package/dist/chunk-RGT4ZVHL.cjs.map +0 -1
- package/dist/chunk-TI24L4XE.cjs.map +0 -1
- package/dist/chunk-TYCYYLLM.cjs.map +0 -1
- package/dist/chunk-ULWNHN6P.js.map +0 -1
- package/dist/chunk-VWSUQKCJ.cjs.map +0 -1
- package/dist/pgboss-backend-DSO3QTNK.cjs +0 -14
- package/dist/pgboss-backend-DSO3QTNK.cjs.map +0 -1
- package/dist/pgboss-backend-I6DFUNRM.js +0 -14
- /package/dist/{chunk-NI2BNGGV.js.map → chunk-5LPRKZPB.js.map} +0 -0
- /package/dist/{chunk-45BWAR6P.js.map → chunk-C2FOZ7ME.js.map} +0 -0
- /package/dist/{chunk-7ZESZG3J.js.map → chunk-MUVO7MGS.js.map} +0 -0
- /package/dist/{pgboss-backend-I6DFUNRM.js.map → pgboss-backend-4X2YT4RB.js.map} +0 -0
package/dist/cli/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
scanDir
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5LPRKZPB.js";
|
|
5
5
|
import {
|
|
6
6
|
parseRedisUrl
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-C2FOZ7ME.js";
|
|
8
8
|
import {
|
|
9
9
|
writeModels
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-DN4TCGYB.js";
|
|
11
11
|
import {
|
|
12
12
|
tableNameFor
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-RETV3GKE.js";
|
|
14
|
+
import "../chunk-XPY5TQDK.js";
|
|
15
|
+
import "../chunk-3SWI46YK.js";
|
|
16
|
+
import "../chunk-B6MB6HEG.js";
|
|
17
|
+
import "../chunk-V73R76I4.js";
|
|
17
18
|
|
|
18
19
|
// src/cli/index.ts
|
|
19
20
|
import fs10 from "fs";
|
|
@@ -552,7 +553,7 @@ async function connect(opts) {
|
|
|
552
553
|
if (backend === "bullmq") return bullmqAdmin(redisUrl ?? "redis://localhost:6379", opts.queue);
|
|
553
554
|
if (backend === "pg-boss") {
|
|
554
555
|
if (!databaseUrl) throw new Error("[EFC] pg-boss needs DATABASE_URL (or --database-url)");
|
|
555
|
-
const { pgBossAdmin } = await import("../pgboss-backend-
|
|
556
|
+
const { pgBossAdmin } = await import("../pgboss-backend-4X2YT4RB.js");
|
|
556
557
|
return pgBossAdmin(databaseUrl, opts.queue);
|
|
557
558
|
}
|
|
558
559
|
throw new Error(`[EFC] Unknown task backend: ${backend}`);
|
|
@@ -818,8 +819,14 @@ function dbCommand() {
|
|
|
818
819
|
(opts) => run2("sync", opts)
|
|
819
820
|
);
|
|
820
821
|
common(
|
|
821
|
-
cmd.command("pull").description(
|
|
822
|
-
|
|
822
|
+
cmd.command("pull").description(
|
|
823
|
+
"Write models for the database: defineTable from PostgreSQL tables, defineCollection from sampled MongoDB documents"
|
|
824
|
+
)
|
|
825
|
+
).option("--out <dir>", "where to write the models", "src/model").option("--force", "overwrite model files that already exist").option(
|
|
826
|
+
"--sample <n>",
|
|
827
|
+
"MongoDB: documents sampled per collection (default 1000)",
|
|
828
|
+
(v) => Number.parseInt(v, 10)
|
|
829
|
+
).action(
|
|
823
830
|
(opts) => run2("pull", opts)
|
|
824
831
|
);
|
|
825
832
|
common(cmd.command("status").description("List applied and pending migrations")).action(
|
|
@@ -830,7 +837,9 @@ function dbCommand() {
|
|
|
830
837
|
).action(
|
|
831
838
|
(name, opts) => run2("seed", { ...opts, ...name !== void 0 && { seed: name } })
|
|
832
839
|
);
|
|
833
|
-
common(
|
|
840
|
+
common(
|
|
841
|
+
cmd.command("studio").description("Open a local database browser (read-only; --write edits through your models)")
|
|
842
|
+
).option("-p, --port <port>", "port to listen on (127.0.0.1 only)", "4983").option("--write", "allow inserting, editing and deleting rows (through src/model, validated)").action(
|
|
834
843
|
(opts) => run2("studio", { ...opts, port: Number(opts.port) })
|
|
835
844
|
);
|
|
836
845
|
return cmd;
|
|
@@ -915,7 +924,8 @@ var Registry = class {
|
|
|
915
924
|
};
|
|
916
925
|
function variantOf(cfg) {
|
|
917
926
|
const lang = cfg.language === "typescript" ? "ts" : "js";
|
|
918
|
-
if (cfg.database === "mongodb")
|
|
927
|
+
if (cfg.database === "mongodb")
|
|
928
|
+
return cfg.modelApi === "defineCollection" ? `${lang}-mongo-collection` : `${lang}-mongo`;
|
|
919
929
|
return `${lang}-pg-${cfg.modelApi === "defineTable" ? "table" : "model"}`;
|
|
920
930
|
}
|
|
921
931
|
function readJson(file) {
|
|
@@ -950,6 +960,10 @@ function detectProject(cwd, version2) {
|
|
|
950
960
|
}
|
|
951
961
|
let modelApi = database === "postgresql" ? "defineTable" : "defineModel";
|
|
952
962
|
const modelDir = path7.join(cwd, "src", "model");
|
|
963
|
+
if (database === "mongodb" && fs7.existsSync(modelDir)) {
|
|
964
|
+
const sources = fs7.readdirSync(modelDir).filter((f) => /\.[jt]s$/.test(f)).map((f) => fs7.readFileSync(path7.join(modelDir, f), "utf8")).join("\n");
|
|
965
|
+
if (/\bdefineCollection\(/.test(sources)) modelApi = "defineCollection";
|
|
966
|
+
}
|
|
953
967
|
if (database === "postgresql" && fs7.existsSync(modelDir)) {
|
|
954
968
|
const sources = fs7.readdirSync(modelDir).filter((f) => /\.[jt]s$/.test(f)).map((f) => fs7.readFileSync(path7.join(modelDir, f), "utf8")).join("\n");
|
|
955
969
|
if (/\bdefineModel\(/.test(sources) && !/\bdefineTable\(/.test(sources))
|
|
@@ -1377,8 +1391,18 @@ function entityLoginContent(pascal, slug, cfg) {
|
|
|
1377
1391
|
const typedArgs = ts ? "(req: Request, res: Response)" : "(req, res)";
|
|
1378
1392
|
const typeImport = ts ? "import type { Request, Response } from 'express';\n" : "";
|
|
1379
1393
|
return `${typeImport}import { issueToken, verifyPassword } from 'express-file-cluster/auth';
|
|
1394
|
+
import { rateLimit } from 'express-file-cluster';
|
|
1380
1395
|
import { ${pascal} } from '../../../model/${pascal}.js';
|
|
1381
1396
|
|
|
1397
|
+
// 10 attempts per 15 minutes per address and account (see TRUST_PROXY behind a proxy).
|
|
1398
|
+
export const middlewares = [
|
|
1399
|
+
rateLimit({
|
|
1400
|
+
window: '15m',
|
|
1401
|
+
max: 10,
|
|
1402
|
+
key: (req) => \`\${req.ip}:\${String(req.body?.email ?? '').toLowerCase()}\`,
|
|
1403
|
+
}),
|
|
1404
|
+
];
|
|
1405
|
+
|
|
1382
1406
|
export const POST = async ${typedArgs} => {
|
|
1383
1407
|
const { email, password } = req.body;
|
|
1384
1408
|
// Strings only: an object such as {"$ne": null} would be read as a filter operator and match any account.
|
|
@@ -1406,11 +1430,7 @@ function entityLogoutContent(cfg) {
|
|
|
1406
1430
|
export const middlewares = [requireAuth];
|
|
1407
1431
|
|
|
1408
1432
|
export const POST = async ${typedArgs} => {
|
|
1409
|
-
|
|
1410
|
-
await revokeSession(req, res);
|
|
1411
|
-
} catch {
|
|
1412
|
-
res.clearCookie('efc_token');
|
|
1413
|
-
}
|
|
1433
|
+
await revokeSession(req, res);
|
|
1414
1434
|
res.json({ message: 'Logged out successfully' });
|
|
1415
1435
|
};
|
|
1416
1436
|
`;
|
|
@@ -2310,10 +2330,8 @@ function importPrismaCommand() {
|
|
|
2310
2330
|
Imported ${models.length} model(s) from ${schema}
|
|
2311
2331
|
`));
|
|
2312
2332
|
for (const f of written) console.log(` ${pc9.green("+")} ${path9.relative(process.cwd(), f)}`);
|
|
2313
|
-
for (const
|
|
2314
|
-
console.log(
|
|
2315
|
-
` ${pc9.yellow("\u2022")} ${path9.relative(process.cwd(), f)} ${pc9.dim("exists \u2014 kept (--force overwrites)")}`
|
|
2316
|
-
);
|
|
2333
|
+
for (const { file: file2, reason } of skipped)
|
|
2334
|
+
console.log(` ${pc9.yellow("\u2022")} ${path9.relative(process.cwd(), file2)} ${pc9.dim(reason)}`);
|
|
2317
2335
|
for (const w of warnings) console.log(pc9.yellow(` ! ${w}`));
|
|
2318
2336
|
const notes = models.reduce((n, m) => n + m.notes.length, 0);
|
|
2319
2337
|
if (notes)
|