@docker-harpoon/prisma 0.1.0 → 0.1.3
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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/patchers/prisma-v7-libsql.d.ts +1 -1
- package/dist/patchers/prisma-v7-libsql.d.ts.map +1 -1
- package/dist/patchers/prisma-v7-libsql.js +1 -1
- package/dist/transformers/prisma.d.ts +1 -1
- package/dist/transformers/prisma.d.ts.map +1 -1
- package/dist/transformers/prisma.js +1 -1
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - Dockerfile transformers for prisma commands in monorepos
|
|
10
10
|
*/
|
|
11
11
|
import { Effect } from 'effect';
|
|
12
|
-
import type { Binding, PatchContext, PatchResult, DockerfileInstruction, TransformContext } from '@harpoon/core';
|
|
12
|
+
import type { Binding, PatchContext, PatchResult, DockerfileInstruction, TransformContext } from '@docker-harpoon/core';
|
|
13
13
|
export { prismaV7LibSqlPatcher } from './patchers/prisma-v7-libsql';
|
|
14
14
|
export { prismaTransformers, prismaPackageManagerTransformer, prismaConditionalSeedTransformer, } from './transformers/prisma';
|
|
15
15
|
export interface PrismaBindingOptions {
|
|
@@ -37,7 +37,7 @@ export interface DatabaseLike {
|
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```typescript
|
|
40
|
-
* import { database, Container } from '@harpoon/core';
|
|
40
|
+
* import { database, Container } from '@docker-harpoon/core';
|
|
41
41
|
* import { PrismaBinding } from '@harpoon/prisma';
|
|
42
42
|
*
|
|
43
43
|
* const db = await database("postgres", {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,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;AAED,wBAAgB,aAAa,CAAC,GAAG,SAAS,YAAY,EACpD,EAAE,EAAE,GAAG,EACP,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CAAC,GAAG,CAAC,CA6E1B;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAiB5C;AAED,eAAe,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -90,7 +90,7 @@ export function PrismaBinding(db, options = {}) {
|
|
|
90
90
|
*/
|
|
91
91
|
export function registerPrismaPlugins() {
|
|
92
92
|
// Dynamic imports to avoid circular dependencies
|
|
93
|
-
const core = require('@harpoon/core');
|
|
93
|
+
const core = require('@docker-harpoon/core');
|
|
94
94
|
const { prismaV7LibSqlPatcher } = require('./patchers/prisma-v7-libsql');
|
|
95
95
|
const { prismaTransformers } = require('./transformers/prisma');
|
|
96
96
|
// Register config patcher
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Patches Prisma v7 libsql-config.ts to include authToken support.
|
|
5
5
|
* Also patches prisma.config.ts for LibSQL configuration.
|
|
6
6
|
*/
|
|
7
|
-
import type { ConfigPatcher } from '@harpoon/core';
|
|
7
|
+
import type { ConfigPatcher } from '@docker-harpoon/core';
|
|
8
8
|
/**
|
|
9
9
|
* Prisma V7 LibSQL patcher.
|
|
10
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma-v7-libsql.d.ts","sourceRoot":"","sources":["../../src/patchers/prisma-v7-libsql.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,aAAa,EAA6B,MAAM,
|
|
1
|
+
{"version":3,"file":"prisma-v7-libsql.d.ts","sourceRoot":"","sources":["../../src/patchers/prisma-v7-libsql.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,aAAa,EAA6B,MAAM,sBAAsB,CAAC;AAsErF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,aA0DnC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { Effect } from 'effect';
|
|
8
8
|
import * as fs from 'fs/promises';
|
|
9
9
|
import * as path from 'path';
|
|
10
|
-
import { ConfigPatchError } from '@harpoon/core';
|
|
10
|
+
import { ConfigPatchError } from '@docker-harpoon/core';
|
|
11
11
|
// ============ Helper Functions ============
|
|
12
12
|
/**
|
|
13
13
|
* Check if the project uses Prisma v7.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Package-manager agnostic: supports npm, yarn, pnpm, and bun.
|
|
8
8
|
*/
|
|
9
|
-
import type { InstructionTransformer } from '@harpoon/core';
|
|
9
|
+
import type { InstructionTransformer } from '@docker-harpoon/core';
|
|
10
10
|
/**
|
|
11
11
|
* Transforms package manager prisma commands to include cd to app directory.
|
|
12
12
|
* Handles: prisma:generate, prisma:seed, exec prisma, run build
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../src/transformers/prisma.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAA2C,MAAM,
|
|
1
|
+
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../src/transformers/prisma.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAA2C,MAAM,sBAAsB,CAAC;AA4B5G;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,sBA0B7C,CAAC;AAOF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,sBA0B9C,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,sBAAsB,EAG9D,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Package-manager agnostic: supports npm, yarn, pnpm, and bun.
|
|
8
8
|
*/
|
|
9
|
-
import { replaceInstruction } from '@harpoon/core';
|
|
9
|
+
import { replaceInstruction } from '@docker-harpoon/core';
|
|
10
10
|
// ============ Helper Functions ============
|
|
11
11
|
/**
|
|
12
12
|
* Package manager prefixes we recognize.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docker-harpoon/prisma",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Prisma binding for Harpoon - database migrations and Dockerfile transformations",
|
|
6
6
|
"type": "module",
|
|
@@ -12,16 +12,18 @@
|
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
16
18
|
"scripts": {
|
|
17
|
-
"build": "
|
|
18
|
-
"typecheck": "
|
|
19
|
+
"build": "tsgo",
|
|
20
|
+
"typecheck": "tsgo --noEmit"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
23
|
"effect": "^3.19.14"
|
|
22
24
|
},
|
|
23
25
|
"peerDependencies": {
|
|
24
|
-
"@docker-harpoon/core": ">=0.1.
|
|
26
|
+
"@docker-harpoon/core": ">=0.1.3",
|
|
25
27
|
"bun": ">=1.0.0"
|
|
26
28
|
}
|
|
27
29
|
}
|