Commit 1027c00
Fix TypeScript build and test errors for ES modules (#142)
* fix: resolve TypeScript build and test errors for ES modules
- Convert jest.config.js from CommonJS to ES module format
- Add cross-env for cross-platform NODE_OPTIONS support
- Import jest globals from @jest/globals in test files
- Replace require.main check with import.meta.url for ES modules
- Remove unnecessary type assertions flagged by ESLint
All 101 tests passing, build and lint successful.
* Update src/rules-compiler-typescript/package.json
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jayson Knight <jayson.knight@jaysonknight.com>
---------
Signed-off-by: Jayson Knight <jayson.knight@jaysonknight.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent def301c commit 1027c00
6 files changed
Lines changed: 50 additions & 184 deletions
File tree
- src/rules-compiler-typescript
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
| 372 | + | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
0 commit comments