-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up typing and make it compatible with both CJS and ESM
Update `tsconfig.json`, `package.json`, and `jest.config.js` for ESM compatibility. * **`tsconfig.json`** - Add `"module": "ESNext"` to `compilerOptions`. - Add `"moduleResolution": "node"` to `compilerOptions`. * **`package.json`** - Add `"exports": { ".": { "import": "./lib/index.mjs", "require": "./lib/index.js" } }`. - Add `"type": "module"`. * **`jest.config.js`** - Add `"transform": { "^.+\\.tsx?$": ["ts-jest", { "useESM": true }] }`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jpwilliams/waitgroup?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
7fa5203
commit cbd5be6
Showing
3 changed files
with
12 additions
and
3 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
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