file-path-helper 2.0.0 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -7,7 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## 2.0.0 - 2026-03-17
10
+ ## 2.0.1 - 2026-03-17
11
+
12
+ - update ts index
13
+
14
+ ## [2.0.0] - 2026-03-17
11
15
 
12
16
  - Convert to ESM module system.
13
17
  - Deprecated `globPromise` method. use `glob` instead.
@@ -65,7 +69,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
65
69
 
66
70
  First Release!
67
71
 
68
- [Unreleased]: https://github.com/archco/file-path-helper/compare/v1.4.0...HEAD
72
+ [Unreleased]: https://github.com/archco/file-path-helper/compare/v2.0.0...HEAD
73
+ [2.0.0]: https://github.com/archco/file-path-helper/compare/v1.4.0...v2.0.0
69
74
  [1.4.0]: https://github.com/archco/file-path-helper/compare/v1.3.0...v1.4.0
70
75
  [1.3.0]: https://github.com/archco/file-path-helper/compare/v1.2.0...v1.3.0
71
76
  [1.2.0]: https://github.com/archco/file-path-helper/compare/v1.1.0...v1.2.0
package/index.d.ts CHANGED
@@ -31,12 +31,15 @@ export interface ParsedDate {
31
31
  /**
32
32
  * Glob promise.
33
33
  *
34
+ * @deprecated Use `glob` directly instead.
34
35
  * @param {string} pattern
35
36
  * @param {GlobOptions} options
36
37
  * @returns {Promise<string[], Error>}
37
38
  */
38
39
  export function globPromise(pattern: string, options: GlobOptions): Promise<string[]>;
39
40
 
41
+ export { glob } from 'glob';
42
+
40
43
  /**
41
44
  * Replace directory separator.
42
45
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "file-path-helper",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "types": "index.d.ts",
6
6
  "description": "Helpful methods for handling file path.",
package/src/file.js CHANGED
@@ -4,7 +4,7 @@ import { pathExists } from 'fs-extra';
4
4
 
5
5
  /**
6
6
  * @typedef {'/'|'\\'} Separator Directory Separator
7
- * @typedef {import('glob').IOptions} GlobOptions Glob Options
7
+ * @typedef {import('glob').GlobOptions} GlobOptions Glob Options
8
8
  */
9
9
 
10
10
  /**