@tsed/prisma 7.80.1 → 7.80.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/lib/cjs/package.json +3 -0
- package/lib/esm/cli/prismaGenerator.js +1 -1
- package/lib/esm/generator.js +2 -2
- package/lib/esm/package.json +3 -0
- package/package.json +13 -12
|
@@ -3,7 +3,7 @@ import fs from "fs-extra";
|
|
|
3
3
|
import path, { join } from "path";
|
|
4
4
|
import { generateCode } from "../generator/generateCode.js";
|
|
5
5
|
import removeDir from "../generator/utils/removeDir.js";
|
|
6
|
-
import { isCommonjs } from "../generator/utils/sourceType";
|
|
6
|
+
import { isCommonjs } from "../generator/utils/sourceType.js";
|
|
7
7
|
function parseStringBoolean(stringBoolean) {
|
|
8
8
|
return Boolean(stringBoolean ? stringBoolean === "true" : undefined);
|
|
9
9
|
}
|
package/lib/esm/generator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
import { generatorHandler } from "@prisma/generator-helper";
|
|
3
3
|
import { join } from "path";
|
|
4
|
-
import { generate } from "./cli/prismaGenerator";
|
|
5
|
-
const rootDir =
|
|
4
|
+
import { generate } from "./cli/prismaGenerator.js";
|
|
5
|
+
const rootDir = import.meta.dirname; // automatically replaced by tsed tools on build
|
|
6
6
|
export const defaultOutput = join(rootDir, "..", ".schema");
|
|
7
7
|
export const packageDir = join(rootDir, "..", "..");
|
|
8
8
|
generatorHandler({
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/prisma",
|
|
3
3
|
"description": "Generate Ts.ED JsonSchema based on Prisma models",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"version": "7.80.
|
|
5
|
+
"version": "7.80.2",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./lib/types/index.d.ts",
|
|
13
13
|
"import": "./lib/esm/index.js",
|
|
14
|
+
"require": "./lib/cjs/index.js",
|
|
14
15
|
"default": "./lib/cjs/index.js"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
@@ -40,13 +41,13 @@
|
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@prisma/client": "^4.16.2",
|
|
43
|
-
"@tsed/barrels": "7.80.
|
|
44
|
-
"@tsed/core": "7.80.
|
|
45
|
-
"@tsed/di": "7.80.
|
|
46
|
-
"@tsed/json-mapper": "7.80.
|
|
47
|
-
"@tsed/monorepo-utils": "
|
|
48
|
-
"@tsed/schema": "7.80.
|
|
49
|
-
"@tsed/typescript": "7.80.
|
|
44
|
+
"@tsed/barrels": "7.80.2",
|
|
45
|
+
"@tsed/core": "7.80.2",
|
|
46
|
+
"@tsed/di": "7.80.2",
|
|
47
|
+
"@tsed/json-mapper": "7.80.2",
|
|
48
|
+
"@tsed/monorepo-utils": "2.3.5",
|
|
49
|
+
"@tsed/schema": "7.80.2",
|
|
50
|
+
"@tsed/typescript": "7.80.2",
|
|
50
51
|
"@types/change-case": "^2.3.1",
|
|
51
52
|
"@types/pluralize": "0.0.33",
|
|
52
53
|
"eslint": "^8.57.0",
|
|
@@ -56,10 +57,10 @@
|
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"@prisma/client": ">=4.0.0",
|
|
59
|
-
"@tsed/core": "7.80.
|
|
60
|
-
"@tsed/di": "7.80.
|
|
61
|
-
"@tsed/json-mapper": "7.80.
|
|
62
|
-
"@tsed/schema": "7.80.
|
|
60
|
+
"@tsed/core": "7.80.2",
|
|
61
|
+
"@tsed/di": "7.80.2",
|
|
62
|
+
"@tsed/json-mapper": "7.80.2",
|
|
63
|
+
"@tsed/schema": "7.80.2"
|
|
63
64
|
},
|
|
64
65
|
"keywords": [
|
|
65
66
|
"TypeScript",
|