@augment-vir/node 32.1.0 → 32.2.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,5 +1,4 @@
1
- import { type PartialWithUndefined } from '@augment-vir/common';
2
- import { type IsEqual, type RequireExactlyOne } from 'type-fest';
1
+ import { type IsEqual, type PartialWithUndefined, type RequireExactlyOne } from '@augment-vir/common';
3
2
  /**
4
3
  * Optional options for {@link grep}.
5
4
  *
@@ -1,4 +1,4 @@
1
- import { type RequireExactlyOne } from 'type-fest';
1
+ import { type RequireExactlyOne } from '@augment-vir/common';
2
2
  /**
3
3
  * Gets all files within a directory and its subdirectories, recursively. Returns an array of paths
4
4
  * relative to the given input path.
@@ -1,5 +1,5 @@
1
1
  import { check } from '@augment-vir/assert';
2
- import { filterMap, getEnumValues, getObjectTypedEntries, getOrSet } from '@augment-vir/common';
2
+ import { filterMap, getEnumValues, getObjectTypedEntries, getOrSet, } from '@augment-vir/common';
3
3
  import { readJsonFile } from '../fs/json.js';
4
4
  import { findAllPackageJsonFilePaths } from './package-json.js';
5
5
  /**
@@ -1,5 +1,5 @@
1
+ import { type PackageJson } from '@augment-vir/common';
1
2
  import { type UnknownObject } from '@augment-vir/core';
2
- import { type PackageJson } from 'type-fest';
3
3
  /**
4
4
  * An npm workspace object. This is the return type for {@link queryNpmWorkspace}.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { type PackageJson } from 'type-fest';
1
+ import { type PackageJson } from '@augment-vir/common';
2
2
  /**
3
3
  * Read the `package.json` file contained within the given directory.
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "32.1.0",
3
+ "version": "32.2.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",
@@ -38,18 +38,17 @@
38
38
  "test:update": "npm test"
39
39
  },
40
40
  "dependencies": {
41
- "@augment-vir/assert": "^32.1.0",
42
- "@augment-vir/common": "^32.1.0",
41
+ "@augment-vir/assert": "^32.2.1",
42
+ "@augment-vir/common": "^32.2.1",
43
43
  "@date-vir/duration": "^8.6.1",
44
44
  "ansi-styles": "^6.2.3",
45
45
  "sanitize-filename": "^1.6.4",
46
46
  "terminate": "^2.8.0",
47
47
  "tsx": "^4.22.4",
48
- "type-fest": "^5.7.0",
49
48
  "typed-event-target": "^4.3.1"
50
49
  },
51
50
  "devDependencies": {
52
- "@augment-vir/test": "^32.1.0",
51
+ "@augment-vir/test": "^32.2.1",
53
52
  "@types/node": "^26.0.1",
54
53
  "@web/dev-server-esbuild": "^1.0.5",
55
54
  "@web/test-runner": "^0.20.2",
@@ -4,13 +4,14 @@ import {
4
4
  getObjectTypedKeys,
5
5
  log,
6
6
  typedObjectFromEntries,
7
+ type IsEqual,
7
8
  type PartialWithUndefined,
9
+ type RequireExactlyOne,
8
10
  type SelectFrom,
9
11
  } from '@augment-vir/common';
10
12
  import {spawn} from 'node:child_process';
11
13
  import {lstat, readdir, stat} from 'node:fs/promises';
12
14
  import {isAbsolute, join, resolve} from 'node:path';
13
- import {type IsEqual, type RequireExactlyOne} from 'type-fest';
14
15
  import {isOperatingSystem, OperatingSystem} from '../os/operating-system.js';
15
16
 
16
17
  /**
@@ -1,6 +1,6 @@
1
+ import {type RequireExactlyOne} from '@augment-vir/common';
1
2
  import {readdir, stat} from 'node:fs/promises';
2
3
  import {join, relative} from 'node:path';
3
- import {type RequireExactlyOne} from 'type-fest';
4
4
 
5
5
  async function internalReadDirPathsRecursive({
6
6
  dirPath,
@@ -1,6 +1,11 @@
1
1
  import {check} from '@augment-vir/assert';
2
- import {filterMap, getEnumValues, getObjectTypedEntries, getOrSet} from '@augment-vir/common';
3
- import {type PackageJson} from 'type-fest';
2
+ import {
3
+ filterMap,
4
+ getEnumValues,
5
+ getObjectTypedEntries,
6
+ getOrSet,
7
+ type PackageJson,
8
+ } from '@augment-vir/common';
4
9
  import {readJsonFile} from '../fs/json.js';
5
10
  import {findAllPackageJsonFilePaths} from './package-json.js';
6
11
 
@@ -1,9 +1,8 @@
1
1
  import {check} from '@augment-vir/assert';
2
- import {filterMap, fromAsyncIterable} from '@augment-vir/common';
2
+ import {filterMap, fromAsyncIterable, type PackageJson} from '@augment-vir/common';
3
3
  import {existsSync} from 'node:fs';
4
4
  import {glob, readFile} from 'node:fs/promises';
5
5
  import {join} from 'node:path';
6
- import {type PackageJson} from 'type-fest';
7
6
  import {findAncestor, joinFilesToDir} from '../path/ancestor.js';
8
7
 
9
8
  /**
@@ -1,5 +1,5 @@
1
+ import {type PackageJson} from '@augment-vir/common';
1
2
  import {type UnknownObject} from '@augment-vir/core';
2
- import {type PackageJson} from 'type-fest';
3
3
  import {runShellCommand} from '../terminal/shell.js';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import {check} from '@augment-vir/assert';
2
+ import {type PackageJson} from '@augment-vir/common';
2
3
  import {join} from 'node:path';
3
- import {type PackageJson} from 'type-fest';
4
4
  import {readJsonFile} from '../fs/json.js';
5
5
 
6
6
  /**