@augment-vir/node 31.7.0 → 31.7.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.
@@ -1,4 +1,4 @@
1
- import { log } from '@augment-vir/common';
1
+ import { log, wrapString } from '@augment-vir/common';
2
2
  import { dirname } from 'node:path';
3
3
  import { interpolationSafeWindowsPath } from '../augments/path/os-path.js';
4
4
  import { runShellCommand } from '../augments/terminal/shell.js';
@@ -7,7 +7,9 @@ const prismaCommandsThatSupportNoHints = ['generate'];
7
7
  export async function runPrismaCommand({ command, ignoreExitCode = false, },
8
8
  /** Set to `undefined` to omit the `--schema` flag. */
9
9
  schemaFilePath, env = {}) {
10
- const schemaFileArgs = schemaFilePath ? ['--schema', schemaFilePath] : [];
10
+ const schemaFileArgs = schemaFilePath
11
+ ? ['--schema', wrapString({ value: schemaFilePath, wrapper: "'" })]
12
+ : [];
11
13
  /** Disable Prisma's in-CLI ads. */
12
14
  const noHintsArg = prismaCommandsThatSupportNoHints.some((commandName) => command.startsWith(commandName))
13
15
  ? '--no-hints'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "31.7.0",
3
+ "version": "31.7.1",
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,8 +37,8 @@
37
37
  "test:update": "npm test"
38
38
  },
39
39
  "dependencies": {
40
- "@augment-vir/assert": "^31.7.0",
41
- "@augment-vir/common": "^31.7.0",
40
+ "@augment-vir/assert": "^31.7.1",
41
+ "@augment-vir/common": "^31.7.1",
42
42
  "@date-vir/duration": "^7.1.2",
43
43
  "ansi-styles": "^6.2.1",
44
44
  "terminate": "^2.8.0",
@@ -46,7 +46,7 @@
46
46
  "typed-event-target": "^4.0.2"
47
47
  },
48
48
  "devDependencies": {
49
- "@augment-vir/test": "^31.7.0",
49
+ "@augment-vir/test": "^31.7.1",
50
50
  "@prisma/client": "^6.2.1",
51
51
  "@types/node": "^22.10.5",
52
52
  "@web/dev-server-esbuild": "^1.0.3",
@@ -1,4 +1,4 @@
1
- import {log} from '@augment-vir/common';
1
+ import {log, wrapString} from '@augment-vir/common';
2
2
  import {dirname} from 'node:path';
3
3
  import {interpolationSafeWindowsPath} from '../augments/path/os-path.js';
4
4
  import {runShellCommand, type ShellOutput} from '../augments/terminal/shell.js';
@@ -18,7 +18,9 @@ export async function runPrismaCommand(
18
18
  schemaFilePath: string | undefined,
19
19
  env: Record<string, string> | undefined = {},
20
20
  ) {
21
- const schemaFileArgs = schemaFilePath ? ['--schema', schemaFilePath] : [];
21
+ const schemaFileArgs = schemaFilePath
22
+ ? ['--schema', wrapString({value: schemaFilePath, wrapper: "'"})]
23
+ : [];
22
24
 
23
25
  /** Disable Prisma's in-CLI ads. */
24
26
  const noHintsArg = prismaCommandsThatSupportNoHints.some((commandName) =>