create-forgeon 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -325,7 +325,9 @@ function patchReadme(targetRoot) {
|
|
|
325
325
|
|
|
326
326
|
const section = `## DB Prisma Module
|
|
327
327
|
|
|
328
|
-
The db-prisma add-module
|
|
328
|
+
The db-prisma add-module is the current implementation of the \`db-adapter\` capability.
|
|
329
|
+
|
|
330
|
+
It provides:
|
|
329
331
|
- \`@forgeon/db-prisma\` package wiring
|
|
330
332
|
- Prisma scripts in \`apps/api/package.json\`
|
|
331
333
|
- DB probe endpoint (\`POST /api/health/db\`)
|
|
@@ -1500,6 +1500,10 @@ describe('addModule', () => {
|
|
|
1500
1500
|
|
|
1501
1501
|
assertDbPrismaWiring(projectRoot);
|
|
1502
1502
|
|
|
1503
|
+
const moduleDoc = fs.readFileSync(dbResult.docsPath, 'utf8');
|
|
1504
|
+
assert.match(moduleDoc, /db-adapter/);
|
|
1505
|
+
assert.match(moduleDoc, /current canonical implementation for `db-adapter`/);
|
|
1506
|
+
|
|
1503
1507
|
const appModule = fs.readFileSync(path.join(projectRoot, 'apps', 'api', 'src', 'app.module.ts'), 'utf8');
|
|
1504
1508
|
assert.match(appModule, /ForgeonLoggerModule/);
|
|
1505
1509
|
assert.match(appModule, /ForgeonSwaggerModule/);
|
package/src/modules/registry.mjs
CHANGED
|
@@ -4,7 +4,7 @@ const MODULE_PRESETS = {
|
|
|
4
4
|
label: 'DB Prisma',
|
|
5
5
|
category: 'database-layer',
|
|
6
6
|
implemented: true,
|
|
7
|
-
description: 'Prisma/Postgres
|
|
7
|
+
description: 'Current Prisma/Postgres provider for the db-adapter capability, including env config, scripts, and DB probe wiring.',
|
|
8
8
|
detectionPaths: ['packages/db-prisma/package.json'],
|
|
9
9
|
provides: ['db-adapter'],
|
|
10
10
|
requires: [],
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
## Overview
|
|
2
2
|
|
|
3
|
-
Adds Prisma/Postgres
|
|
3
|
+
Adds the current Prisma/Postgres implementation of the `db-adapter` capability to the API.
|
|
4
4
|
|
|
5
5
|
Included parts:
|
|
6
6
|
- `@forgeon/db-prisma` package
|
|
7
7
|
- Prisma schema + migration files in `apps/api/prisma`
|
|
8
8
|
- API scripts for `prisma generate/migrate/studio/seed`
|
|
9
9
|
- DB health probe endpoint wiring
|
|
10
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Applied Scope
|
|
2
2
|
|
|
3
|
-
- Adds `packages/db-prisma` workspace package
|
|
3
|
+
- Adds `packages/db-prisma` workspace package as the current `db-adapter` provider
|
|
4
4
|
- Restores/creates `apps/api/prisma` schema and migrations
|
|
5
5
|
- Wires db config/env schema into API `ConfigModule` load/validation
|
|
6
6
|
- Registers `DbPrismaModule` in API `AppModule`
|
|
@@ -12,3 +12,5 @@
|
|
|
12
12
|
- `infra/docker/.env.example`
|
|
13
13
|
- `infra/docker/compose.yml`
|
|
14
14
|
|
|
15
|
+
Current provider note:
|
|
16
|
+
- Other DB providers may be added later, but this module is the current canonical implementation for `db-adapter`
|