-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This converts the package to generate an ESM module as the build output. The instigator was #39 but there were a number of ESM-only packages in the dependencies. The final result is as follows: * Switched from `term-size` to `terminal-size` and upgraded `ansi-regex`, `chalk` and `diff`. * Switched to [shikiji](https://github.com/antfu/shikiji) and patched the perf optimization for `setTheme` from shiki. * Update min node version to 18. * There's a ~35ms improvement in startup time. * Switched from `yarn` to `npm`. `yarn v4` does pretty weird things that were hard to get to work esp on windows.
- Loading branch information
Showing
25 changed files
with
6,090 additions
and
2,780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v14.21.2 | ||
v18.18.2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
module.exports = { | ||
/** @type {import('jest').Config} */ | ||
const jestConfig = { | ||
preset: 'ts-jest/presets/default-esm', | ||
roots: ['<rootDir>/src'], | ||
testMatch: ['**/?(*.)+(spec|test).+(ts|tsx|js)'], | ||
transform: { | ||
'^.+\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
}; | ||
|
||
export default jestConfig; |
Oops, something went wrong.