@sorrell/utilities 1.1.59 → 1.1.61

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.
Files changed (44) hide show
  1. package/Distribution/CJS/fs.js +9 -5
  2. package/Distribution/CJS/fs.js.map +3 -3
  3. package/Distribution/CJS/functional.js.map +2 -2
  4. package/Distribution/CJS/index.js +41 -53
  5. package/Distribution/CJS/index.js.map +3 -3
  6. package/Distribution/CJS/npm-effect.js +130 -0
  7. package/Distribution/CJS/npm-effect.js.map +7 -0
  8. package/Distribution/CJS/npm.js +31 -47
  9. package/Distribution/CJS/npm.js.map +3 -3
  10. package/Distribution/ESM/fs.js +9 -5
  11. package/Distribution/ESM/fs.js.map +2 -2
  12. package/Distribution/ESM/functional.js.map +2 -2
  13. package/Distribution/ESM/index.js +41 -53
  14. package/Distribution/ESM/index.js.map +3 -3
  15. package/Distribution/ESM/npm-effect.js +97 -0
  16. package/Distribution/ESM/npm-effect.js.map +7 -0
  17. package/Distribution/ESM/npm.js +31 -47
  18. package/Distribution/ESM/npm.js.map +2 -2
  19. package/Distribution/Types/FileSystem/FileSystem.d.ts +20 -0
  20. package/Distribution/Types/FileSystem/FileSystem.d.ts.map +1 -1
  21. package/Distribution/Types/Functional/Functional.Internal.Types.d.ts +9 -0
  22. package/Distribution/Types/Functional/Functional.Internal.Types.d.ts.map +1 -0
  23. package/Distribution/Types/Functional/Functional.Internal.d.ts +8 -0
  24. package/Distribution/Types/Functional/Functional.Internal.d.ts.map +1 -0
  25. package/Distribution/Types/Functional/Functional.d.ts.map +1 -1
  26. package/Distribution/Types/Npm/Index.Effect.d.ts +9 -0
  27. package/Distribution/Types/Npm/Index.Effect.d.ts.map +1 -0
  28. package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts +17 -0
  29. package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts.map +1 -0
  30. package/Distribution/Types/Npm/Npm.Effect.Types.d.ts +12 -0
  31. package/Distribution/Types/Npm/Npm.Effect.Types.d.ts.map +1 -0
  32. package/Distribution/Types/Npm/Npm.Effect.d.ts +92 -0
  33. package/Distribution/Types/Npm/Npm.Effect.d.ts.map +1 -0
  34. package/Distribution/Types/Npm/Npm.Error.d.ts +5 -3
  35. package/Distribution/Types/Npm/Npm.Error.d.ts.map +1 -1
  36. package/Distribution/Types/Npm/Npm.d.ts +26 -19
  37. package/Distribution/Types/Npm/Npm.d.ts.map +1 -1
  38. package/Distribution/Types/Npm/index.d.ts +0 -1
  39. package/Distribution/Types/Npm/index.d.ts.map +1 -1
  40. package/License.md +21 -0
  41. package/ReadMe.md +2 -2
  42. package/package.json +7 -5
  43. package/Distribution/Types/Npm/Npm.Types.d.ts +0 -11
  44. package/Distribution/Types/Npm/Npm.Types.d.ts.map +0 -1
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file Index.Effect.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ export * from "./Npm.Effect.ts";
8
+ export * from "./Npm.Effect.Types.ts";
9
+ //# sourceMappingURL=Index.Effect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Index.Effect.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Index.Effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @file Npm.Effect.Internal.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ /**
8
+ * Returns whether a given {@link Value} contains a `readonly` `string` `"code"`.
9
+ *
10
+ * @param Value - The value to test.
11
+ * @returns {Value is { readonly code: string }} Whether {@link Value} is a
12
+ * `{ readonly code: string }`.
13
+ */
14
+ export declare function HasErrorCode(Value: unknown): Value is {
15
+ readonly code: string;
16
+ };
17
+ //# sourceMappingURL=Npm.Effect.Internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Npm.Effect.Internal.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Effect.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAM/E"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file Npm.Effect.Types.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { PackageJsonParseError, RootDirectoryNotFoundError } from "./Npm.Error.ts";
8
+ import type { Effect } from "effect";
9
+ import type { IPackageJson } from "package-json-type";
10
+ export type EGetPackageJson = Effect.Effect<IPackageJson, PackageJsonParseError | RootDirectoryNotFoundError, never>;
11
+ export type EGetPackageRootDirectory = Effect.Effect<string, RootDirectoryNotFoundError, never>;
12
+ //# sourceMappingURL=Npm.Effect.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Npm.Effect.Types.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Effect.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,MAAM,CAAC,MAAM,CACT,YAAY,EACZ,qBAAqB,GAAG,0BAA0B,EAClD,KAAK,CACR,CAAC;AAEN,MAAM,MAAM,wBAAwB,GAChC,MAAM,CAAC,MAAM,CACT,MAAM,EACN,0BAA0B,EAC1B,KAAK,CACR,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * @file Npm.Effect.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { EGetPackageJson, EGetPackageRootDirectory } from "./Npm.Effect.Types.ts";
8
+ /**
9
+ * Get the `package.json` of the Node.js project in which the
10
+ * given path, or the current working directory, resides.
11
+ *
12
+ * @param Path - The given path from which to look for a root directory.
13
+ *
14
+ * @returns {EGetPackageJson} An Effect that succeeds with the parsed `package.json`, or fails
15
+ * with {@link RootDirectoryNotFoundError} or {@link PackageJsonParseError}.
16
+ *
17
+ * @example
18
+ * Suppose `process.cwd() === "./MyPackage"`,
19
+ * ```typescript
20
+ * Effect.gen(function* ()
21
+ * {
22
+ * const PackageJson: IPackageJson = yield* GetPackageJson();
23
+ * // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
24
+ * }
25
+ * ```
26
+ */
27
+ export declare function GetPackageJson(Path?: string): EGetPackageJson;
28
+ /**
29
+ * Get the root directory of the Node.js project in which the
30
+ * current working directory resides.
31
+ *
32
+ * @param Path - *(Optional)* The given path from which to look for a root directory.
33
+ *
34
+ * @returns {EGetPackageRootDirectory} An Effect that succeeds with the package root
35
+ * directory, or fails with {@link RootDirectoryNotFoundError}.
36
+ *
37
+ * @example
38
+ * Suppose `process.cwd()` is any one of the following,
39
+ * - `/home/alex/myPackage`,
40
+ * - `/home/alex/myPackage/src/MyModule`,
41
+ * - `/home/alex/myPackage/resource/Images`,
42
+ *
43
+ * then,
44
+ *
45
+ * ```typescript
46
+ * import { Effect } from "effect";
47
+ * const Root: string = await Effect.runPromise(GetPackageRootDirectory());
48
+ * // `Root` <- `"/home/alex/myPackage"`
49
+ * ```
50
+ *
51
+ * @example
52
+ * Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
53
+ * (of course, neither are `/home/alex` or `/home`). Then,
54
+ *
55
+ * ```typescript
56
+ * import { Effect } from "effect";
57
+ * const TestPath: string = "/home/alex/Documents";
58
+ * let Root: string | undefined = undefined;
59
+ * try
60
+ * {
61
+ * Root = await Effect.runPromise(
62
+ * GetPackageRootDirectory(TestPath)
63
+ * );
64
+ * }
65
+ * catch (Error: unknown)
66
+ * {
67
+ * // `Error instanceof RootDirectoryNotFound`
68
+ * }
69
+ *
70
+ * // `Root` <- `undefined`
71
+ * ```
72
+ *
73
+ * @example
74
+ * Suppose `process.cwd() === /home/alex/Downloads`, which is *not* a NodeJS package
75
+ * (of course, neither are `/home/alex` or `/home`). Then,
76
+ *
77
+ * ```typescript
78
+ * import { Effect } from "effect";
79
+ * let Root: string | undefined = undefined;
80
+ * try
81
+ * {
82
+ * Root = await Effect.runPromise(GetPackageRootDirectory());
83
+ * }
84
+ * catch (Error: unknown)
85
+ * {
86
+ * // `Error instanceof RootDirectoryNotFound`
87
+ * }
88
+ * // `Root` <- `undefined`
89
+ * ```
90
+ */
91
+ export declare function GetPackageRootDirectory(Path?: string): EGetPackageRootDirectory;
92
+ //# sourceMappingURL=Npm.Effect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Npm.Effect.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AASvF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAyB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,wBAAwB,CA6C/E"}
@@ -10,8 +10,9 @@ declare const PackageJsonParseError_base: new <A extends Record<string, any> = {
10
10
  /**
11
11
  * An error describing that {@link GetPackageJson} failed to parse the discovered `package.json` file.
12
12
  *
13
- * @field Path - The `Path` argument passed to the effect returning this error, if one was given.
14
- * @field Cause - The cause of this error.
13
+ * @property {string | undefined} Path - The `Path` argument passed to the effect returning this error,
14
+ * if one was given.
15
+ * @property {unknown} Cause - The cause of this error.
15
16
  */
16
17
  export declare class PackageJsonParseError extends PackageJsonParseError_base<{
17
18
  readonly Path: string | undefined;
@@ -24,7 +25,8 @@ declare const RootDirectoryNotFoundError_base: new <A extends Record<string, any
24
25
  /**
25
26
  * An error describing that {@link GetPackageRootDirectory} failed.
26
27
  *
27
- * @field Path - The `Path` argument passed to the effect returning this error, if one was given.
28
+ * @property {string | undefined} Path - The `Path` argument passed to the effect returning
29
+ * this error, if one was given.
28
30
  */
29
31
  export declare class RootDirectoryNotFoundError extends RootDirectoryNotFoundError_base<{
30
32
  readonly Path: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Npm.Error.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Error.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;AAIH;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,2BAA0C;IACjF,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CAC3B,CAAC;CAAI;;;;AAEN;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,gCAA0C;IACtF,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;CAAI"}
1
+ {"version":3,"file":"Npm.Error.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Error.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;AAIH;;;;;;GAMG;AACH,qBAAa,qBACT,SAAQ,2BAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CAC3B,CAAC;CAAI;;;;AAEV;;;;;GAKG;AACH,qBAAa,0BACT,SAAQ,gCAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;CAAI"}
@@ -4,27 +4,39 @@
4
4
  * @copyright (c) 2026 Gage Sorrell
5
5
  * @license MIT
6
6
  */
7
- import { RootDirectoryNotFoundError } from "./Npm.Error.ts";
8
- import { Effect } from "effect";
9
- import type { GetPackageJsonEffect } from "./Npm.Types.ts";
7
+ import type { IPackageJson } from "package-json-type";
10
8
  /**
11
9
  * Get the `package.json` of the Node.js project in which the
12
10
  * given path, or the current working directory, resides.
13
11
  *
14
- * @param Path - *(Optional)* The given path from which to look for a root directory.
12
+ * @param Path - The given path from which to look for a root directory.
15
13
  *
16
- * @returns An Effect that succeeds with the parsed `package.json`, or fails
17
- * with {@link RootDirectoryNotFoundError} or {@link PackageJsonParseError}.
14
+ * @throws {RootDirectoryNotFoundError | PackageJsonParseError} An error
15
+ * describing either failure to identify a root directory, or failing to
16
+ * parse the discovered `package.json`.
17
+ *
18
+ * @returns {Promise<IPackageJson>} The {@link IPackageJson} of {@link Path}
19
+ * if provided, otherwise of `process.cwd()`.
20
+ *
21
+ * @example
22
+ * Suppose `process.cwd() === "./MyPackage"`,
23
+ * ```typescript
24
+ * const PackageJson: IPackageJson = await GetPackageJson();
25
+ * // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
26
+ * ```
18
27
  */
19
- export declare function GetPackageJson(Path?: string): GetPackageJsonEffect;
28
+ export declare function GetPackageJson(Path?: string): Promise<IPackageJson>;
20
29
  /**
21
30
  * Get the root directory of the Node.js project in which the
22
31
  * current working directory resides.
23
32
  *
24
- * @param Path - *(Optional)* The given path from which to look for a root directory.
33
+ * @param Path - The given path from which to look for a root directory.
34
+ *
35
+ * @throws {RootDirectoryNotFoundError} An error iff the root directory
36
+ * of a NodeJS package could not be found.
25
37
  *
26
- * @returns An Effect that succeeds with the package root directory, or fails
27
- * with {@link RootDirectoryNotFoundError}.
38
+ * @returns {Promise<string>} The path to the root directory of the package
39
+ * containing {@link Path} if specified, otherwise containing `process.cwd()`.
28
40
  *
29
41
  * @example
30
42
  * Suppose `process.cwd()` is any one of the following,
@@ -35,8 +47,7 @@ export declare function GetPackageJson(Path?: string): GetPackageJsonEffect;
35
47
  * then,
36
48
  *
37
49
  * ```typescript
38
- * import { Effect } from "effect";
39
- * const Root: string = await Effect.runPromise(GetPackageRootDirectory());
50
+ * const Root: string = await GetPackageRootDirectory();
40
51
  * // `Root` <- `"/home/alex/myPackage"`
41
52
  * ```
42
53
  *
@@ -45,14 +56,11 @@ export declare function GetPackageJson(Path?: string): GetPackageJsonEffect;
45
56
  * (of course, neither are `/home/alex` or `/home`). Then,
46
57
  *
47
58
  * ```typescript
48
- * import { Effect } from "effect";
49
59
  * const TestPath: string = "/home/alex/Documents";
50
60
  * let Root: string | undefined = undefined;
51
61
  * try
52
62
  * {
53
- * Root = await Effect.runPromise(
54
- * GetPackageRootDirectory(TestPath)
55
- * );
63
+ * Root = await GetPackageRootDirectory(TestPath);
56
64
  * }
57
65
  * catch (Error: unknown)
58
66
  * {
@@ -67,11 +75,10 @@ export declare function GetPackageJson(Path?: string): GetPackageJsonEffect;
67
75
  * (of course, neither are `/home/alex` or `/home`). Then,
68
76
  *
69
77
  * ```typescript
70
- * import { Effect } from "effect";
71
78
  * let Root: string | undefined = undefined;
72
79
  * try
73
80
  * {
74
- * Root = await Effect.runPromise(GetPackageRootDirectory());
81
+ * Root = await GetPackageRootDirectory();
75
82
  * }
76
83
  * catch (Error: unknown)
77
84
  * {
@@ -80,5 +87,5 @@ export declare function GetPackageJson(Path?: string): GetPackageJsonEffect;
80
87
  * // `Root` <- `undefined`
81
88
  * ```
82
89
  */
83
- export declare function GetPackageRootDirectory(Path?: string): Effect.Effect<string, RootDirectoryNotFoundError, never>;
90
+ export declare function GetPackageRootDirectory(Path?: string): Promise<string>;
84
91
  //# sourceMappingURL=Npm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Npm.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAyB,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAa3D;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC1B,IAAI,CAAC,EAAE,MAAM,GACd,oBAAoB,CAyBtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,wBAAgB,uBAAuB,CACnC,IAAI,CAAC,EAAE,MAAM,GACd,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,CAAC,CA6C1D"}
1
+ {"version":3,"file":"Npm.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoBzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5E"}
@@ -12,5 +12,4 @@
12
12
  */
13
13
  export * from "./Npm.ts";
14
14
  export * from "./Npm.Error.ts";
15
- export * from "./Npm.Types.ts";
16
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/Npm/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/Npm/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
package/License.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Gage Sorrell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/ReadMe.md CHANGED
@@ -1,5 +1,5 @@
1
+ *Copyright &copy; 2026 Gage Sorrell. Released under the [MIT license](./License.md).*
2
+
1
3
  # `@sorrell/utilities`
2
4
 
3
5
  **Purpose.**&ensp;This package hosts general-purpose utility functions and types.
4
-
5
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sorrell/utilities",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "private": false,
5
5
  "description": "Various TypeScript utilities.",
6
6
  "keywords": [
@@ -84,6 +84,12 @@
84
84
  "require": "./Distribution/CJS/npm.js",
85
85
  "default": "./Distribution/ESM/npm.js"
86
86
  },
87
+ "./npm/effect": {
88
+ "types": "./Distribution/Types/Npm/Index.Effect.d.ts",
89
+ "import": "./Distribution/ESM/npm-effect.js",
90
+ "require": "./Distribution/CJS/npm-effect.js",
91
+ "default": "./Distribution/ESM/npm-effect.js"
92
+ },
87
93
  "./math": {
88
94
  "types": "./Distribution/Types/Math/index.d.ts",
89
95
  "import": "./Distribution/ESM/math.js",
@@ -108,7 +114,6 @@
108
114
  "optional": true
109
115
  }
110
116
  },
111
- "main": "./Distribution/ESM/index.js",
112
117
  "types": "./Distribution/Types/index.d.ts",
113
118
  "scripts": {
114
119
  "prepublish": "npm run build",
@@ -117,13 +122,10 @@
117
122
  "build": "npm run build:js && npm run build:types"
118
123
  },
119
124
  "devDependencies": {
120
- "@rollup/plugin-node-resolve": "^16.0.3",
121
- "@rollup/plugin-typescript": "^12.3.0",
122
125
  "@types/node": "^25.6.0",
123
126
  "clipboardy": "^5.3.1",
124
127
  "esbuild": "^0.28.0",
125
128
  "package-json-type": "^1.1.2",
126
- "rollup": "^4.60.2",
127
129
  "tslib": "^2.8.1",
128
130
  "tsover": "^6.0.0",
129
131
  "tsover-runtime": "0.0.6"
@@ -1,11 +0,0 @@
1
- /**
2
- * @file Npm.Types.ts
3
- * @author Gage Sorrell <gage@sorrell.sh>
4
- * @copyright (c) 2026 Gage Sorrell
5
- * @license MIT
6
- */
7
- import type { PackageJsonParseError, RootDirectoryNotFoundError } from "./Npm.Error.ts";
8
- import type { Effect } from "effect";
9
- import type { IPackageJson } from "package-json-type";
10
- export type GetPackageJsonEffect = Effect.Effect<IPackageJson, PackageJsonParseError | RootDirectoryNotFoundError, never>;
11
- //# sourceMappingURL=Npm.Types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Npm.Types.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAC5B,MAAM,CAAC,MAAM,CACT,YAAY,EACZ,qBAAqB,GAAG,0BAA0B,EAClD,KAAK,CACR,CAAC"}