Commit 8e80aa0
committed
feat: rewrite package to ESM
- Convert source from CJS (export =, import = require) to ESM imports/exports
- Inline is-windows and graceful-fs (trivial for Node >=22.13)
- Replace util.promisify wrapping with direct fs.promises usage
- Update tsconfig to module/moduleResolution "nodenext"
- Add "type": "module" and "exports" field to package.json
- Convert test files to ESM imports
- Remove unused dependencies (graceful-fs, is-windows, cmd-extension, standard, mos)1 parent 05e5558 commit 8e80aa0
8 files changed
Lines changed: 150 additions & 4278 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 47 | | |
62 | | - | |
| 48 | + | |
| 49 | + | |
63 | 50 | | |
64 | 51 | | |
65 | 52 | | |
0 commit comments