@augment-vir/node 31.9.2 → 31.9.4
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.
|
@@ -5,6 +5,7 @@ import { applyPrismaMigrationsToDev, applyPrismaMigrationsToProd, createPrismaMi
|
|
|
5
5
|
export type { PrismaAddDataData as PrismaAddModelData, PrismaDataDumpOptions, } from '../prisma/model-data.js';
|
|
6
6
|
export * from '../prisma/prisma-errors.js';
|
|
7
7
|
export type { PrismaMigrationStatus } from '../prisma/prisma-migrations.js';
|
|
8
|
+
export { prismaCommandsThatSupportNoHints, runPrismaCommand } from '../prisma/run-prisma-command.js';
|
|
8
9
|
/**
|
|
9
10
|
* Centralized Prisma API from `@augment-vir/node`.
|
|
10
11
|
*
|
package/dist/augments/prisma.js
CHANGED
|
@@ -3,6 +3,7 @@ import { generatePrismaClient, isGeneratedPrismaClientCurrent } from '../prisma/
|
|
|
3
3
|
import { doesPrismaDiffExist, getPrismaDiff, resetDevPrismaDatabase, } from '../prisma/prisma-database.js';
|
|
4
4
|
import { applyPrismaMigrationsToDev, applyPrismaMigrationsToProd, createPrismaMigration, getMigrationStatus, } from '../prisma/prisma-migrations.js';
|
|
5
5
|
export * from '../prisma/prisma-errors.js';
|
|
6
|
+
export { prismaCommandsThatSupportNoHints, runPrismaCommand } from '../prisma/run-prisma-command.js';
|
|
6
7
|
/**
|
|
7
8
|
* Centralized Prisma API from `@augment-vir/node`.
|
|
8
9
|
*
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { type ShellOutput } from '../augments/terminal/shell.js';
|
|
2
|
+
/**
|
|
3
|
+
* All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
|
|
4
|
+
*
|
|
5
|
+
* @category Prisma : Node : Util
|
|
6
|
+
* @category Package : @augment-vir/node
|
|
7
|
+
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
|
|
8
|
+
*/
|
|
9
|
+
export declare const prismaCommandsThatSupportNoHints: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Directly run a Prisma command.
|
|
12
|
+
*
|
|
13
|
+
* @category Prisma : Node : Util
|
|
14
|
+
* @category Package : @augment-vir/node
|
|
15
|
+
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
|
|
16
|
+
*/
|
|
2
17
|
export declare function runPrismaCommand({ command, ignoreExitCode, }: {
|
|
3
18
|
command: string;
|
|
4
19
|
ignoreExitCode?: boolean | undefined;
|
|
@@ -3,7 +3,21 @@ import { dirname } from 'node:path';
|
|
|
3
3
|
import { interpolationSafeWindowsPath } from '../augments/path/os-path.js';
|
|
4
4
|
import { runShellCommand } from '../augments/terminal/shell.js';
|
|
5
5
|
import { PrismaSchemaError } from './prisma-errors.js';
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
|
|
8
|
+
*
|
|
9
|
+
* @category Prisma : Node : Util
|
|
10
|
+
* @category Package : @augment-vir/node
|
|
11
|
+
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
|
|
12
|
+
*/
|
|
13
|
+
export const prismaCommandsThatSupportNoHints = ['generate'];
|
|
14
|
+
/**
|
|
15
|
+
* Directly run a Prisma command.
|
|
16
|
+
*
|
|
17
|
+
* @category Prisma : Node : Util
|
|
18
|
+
* @category Package : @augment-vir/node
|
|
19
|
+
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
|
|
20
|
+
*/
|
|
7
21
|
export async function runPrismaCommand({ command, ignoreExitCode = false, },
|
|
8
22
|
/** Set to `undefined` to omit the `--schema` flag. */
|
|
9
23
|
schemaFilePath, env = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/node",
|
|
3
|
-
"version": "31.9.
|
|
3
|
+
"version": "31.9.4",
|
|
4
4
|
"description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augment",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"test:update": "npm test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@augment-vir/assert": "^31.9.
|
|
41
|
-
"@augment-vir/common": "^31.9.
|
|
42
|
-
"@date-vir/duration": "^7.2.
|
|
40
|
+
"@augment-vir/assert": "^31.9.4",
|
|
41
|
+
"@augment-vir/common": "^31.9.4",
|
|
42
|
+
"@date-vir/duration": "^7.2.1",
|
|
43
43
|
"ansi-styles": "^6.2.1",
|
|
44
44
|
"terminate": "^2.8.0",
|
|
45
45
|
"tsx": "^4.19.3",
|
|
46
|
-
"type-fest": "^4.
|
|
46
|
+
"type-fest": "^4.37.0",
|
|
47
47
|
"typed-event-target": "^4.0.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@augment-vir/test": "^31.9.
|
|
51
|
-
"@prisma/client": "^6.4.
|
|
52
|
-
"@types/node": "^22.13.
|
|
50
|
+
"@augment-vir/test": "^31.9.4",
|
|
51
|
+
"@prisma/client": "^6.4.1",
|
|
52
|
+
"@types/node": "^22.13.9",
|
|
53
53
|
"@web/dev-server-esbuild": "^1.0.4",
|
|
54
54
|
"@web/test-runner": "^0.20.0",
|
|
55
55
|
"@web/test-runner-commands": "^0.9.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"c8": "^10.1.3",
|
|
59
59
|
"concurrently": "^9.1.2",
|
|
60
60
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
61
|
-
"prisma": "^6.4.
|
|
62
|
-
"typescript": "^5.
|
|
61
|
+
"prisma": "^6.4.1",
|
|
62
|
+
"typescript": "^5.8.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"typescript": "*"
|
package/src/augments/prisma.ts
CHANGED
|
@@ -21,6 +21,7 @@ export type {
|
|
|
21
21
|
} from '../prisma/model-data.js';
|
|
22
22
|
export * from '../prisma/prisma-errors.js';
|
|
23
23
|
export type {PrismaMigrationStatus} from '../prisma/prisma-migrations.js';
|
|
24
|
+
export {prismaCommandsThatSupportNoHints, runPrismaCommand} from '../prisma/run-prisma-command.js';
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Centralized Prisma API from `@augment-vir/node`.
|
|
@@ -4,8 +4,22 @@ import {interpolationSafeWindowsPath} from '../augments/path/os-path.js';
|
|
|
4
4
|
import {runShellCommand, type ShellOutput} from '../augments/terminal/shell.js';
|
|
5
5
|
import {PrismaSchemaError} from './prisma-errors.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
|
|
9
|
+
*
|
|
10
|
+
* @category Prisma : Node : Util
|
|
11
|
+
* @category Package : @augment-vir/node
|
|
12
|
+
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
|
|
13
|
+
*/
|
|
14
|
+
export const prismaCommandsThatSupportNoHints = ['generate'];
|
|
8
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Directly run a Prisma command.
|
|
18
|
+
*
|
|
19
|
+
* @category Prisma : Node : Util
|
|
20
|
+
* @category Package : @augment-vir/node
|
|
21
|
+
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
|
|
22
|
+
*/
|
|
9
23
|
export async function runPrismaCommand(
|
|
10
24
|
{
|
|
11
25
|
command,
|