@prisma-next/target-mongo 0.0.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/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # @prisma-next/target-mongo
2
+
3
+ MongoDB target pack for Prisma Next.
4
+
5
+ ## Responsibilities
6
+
7
+ - **Codec definitions**: Registers MongoDB-specific codecs (`objectId`, `string`, `date`, etc.) with their type mappings
8
+ - **Target pack assembly**: Exports the MongoDB target pack for use by the contract emitter and runtime
9
+
10
+ ## Dependencies
11
+
12
+ - **Depends on**:
13
+ - `@prisma-next/mongo-core` (codec types, contract types)
@@ -0,0 +1,12 @@
1
+ //#region src/core/descriptor-meta.d.ts
2
+ declare const mongoTargetDescriptorMeta: {
3
+ readonly kind: "target";
4
+ readonly familyId: "mongo";
5
+ readonly targetId: "mongo";
6
+ readonly id: "mongo";
7
+ readonly version: "0.0.1";
8
+ readonly capabilities: {};
9
+ };
10
+ //#endregion
11
+ export { mongoTargetDescriptorMeta as default };
12
+ //# sourceMappingURL=pack.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack.d.mts","names":[],"sources":["../src/core/descriptor-meta.ts"],"sourcesContent":[],"mappings":";cAAa;EAAA,SAAA,IAAA,EAAA,QAAA"}
package/dist/pack.mjs ADDED
@@ -0,0 +1,17 @@
1
+ //#region src/core/descriptor-meta.ts
2
+ const mongoTargetDescriptorMeta = {
3
+ kind: "target",
4
+ familyId: "mongo",
5
+ targetId: "mongo",
6
+ id: "mongo",
7
+ version: "0.0.1",
8
+ capabilities: {}
9
+ };
10
+
11
+ //#endregion
12
+ //#region src/exports/pack.ts
13
+ var pack_default = mongoTargetDescriptorMeta;
14
+
15
+ //#endregion
16
+ export { pack_default as default };
17
+ //# sourceMappingURL=pack.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack.mjs","names":[],"sources":["../src/core/descriptor-meta.ts","../src/exports/pack.ts"],"sourcesContent":["export const mongoTargetDescriptorMeta = {\n kind: 'target',\n familyId: 'mongo',\n targetId: 'mongo',\n id: 'mongo',\n version: '0.0.1',\n capabilities: {},\n} as const;\n","import { mongoTargetDescriptorMeta } from '../core/descriptor-meta';\n\nexport default mongoTargetDescriptorMeta;\n"],"mappings":";AAAA,MAAa,4BAA4B;CACvC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,EAAE;CACjB;;;;ACLD,mBAAe"}
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@prisma-next/target-mongo",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "description": "MongoDB target pack for Prisma Next",
7
+ "scripts": {
8
+ "build": "tsdown",
9
+ "test": "vitest run --passWithNoTests",
10
+ "test:coverage": "vitest run --coverage --passWithNoTests",
11
+ "typecheck": "tsc --project tsconfig.json --noEmit",
12
+ "lint": "biome check . --error-on-warnings",
13
+ "lint:fix": "biome check --write .",
14
+ "lint:fix:unsafe": "biome check --write --unsafe .",
15
+ "clean": "rm -rf dist dist-tsc dist-tsc-prod coverage .tmp-output"
16
+ },
17
+ "dependencies": {
18
+ "@prisma-next/mongo-core": "workspace:*"
19
+ },
20
+ "devDependencies": {
21
+ "@prisma-next/tsconfig": "workspace:*",
22
+ "@prisma-next/tsdown": "workspace:*",
23
+ "tsdown": "catalog:",
24
+ "typescript": "catalog:",
25
+ "vitest": "catalog:"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "src"
30
+ ],
31
+ "exports": {
32
+ ".": "./dist/pack.mjs",
33
+ "./package.json": "./package.json"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/prisma/prisma-next.git",
38
+ "directory": "packages/3-mongo-target/1-mongo-target"
39
+ },
40
+ "main": "./dist/pack.mjs",
41
+ "module": "./dist/pack.mjs",
42
+ "types": "./dist/pack.d.mts"
43
+ }
@@ -0,0 +1,8 @@
1
+ export const mongoTargetDescriptorMeta = {
2
+ kind: 'target',
3
+ familyId: 'mongo',
4
+ targetId: 'mongo',
5
+ id: 'mongo',
6
+ version: '0.0.1',
7
+ capabilities: {},
8
+ } as const;
@@ -0,0 +1,3 @@
1
+ import { mongoTargetDescriptorMeta } from '../core/descriptor-meta';
2
+
3
+ export default mongoTargetDescriptorMeta;