Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES Modules support #10

Merged
merged 4 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ module.exports = {

Possible options are presented in the table below.

| Option | Default Value | Description |
| ------------ | ------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| `path` | `'reporter/index.js'` | Path to your reporter |
| `tsNodePath` | `'node_modules/ts-node'` | Path to your `ts-node` installation (only used for `*.ts` files) |
| `tsOptions` | `undefined` | [`ts-node` options](https://github.com/TypeStrong/ts-node#cli-and-programmatic-options) (only used for `*.ts` files) |
| Option | Default Value | Description |
| ------------ | ------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| `path` | `'reporter/index.js'` | Path to your reporter. |
| `module` | `'commonjs'` | Whether your reporter uses CommonJS or ES Modules. Possible values are `commonjs` and `module`. |
| `tsNodePath` | `'node_modules/ts-node'` | Path to your `ts-node` installation (only used for `*.ts` files). |
| `tsOptions` | `undefined` | [`ts-node` options](https://github.com/TypeStrong/ts-node#cli-and-programmatic-options) (only used for `*.ts` files). |

## TypeScript Usage

Expand Down Expand Up @@ -115,4 +116,5 @@ module.exports = {
There is a couple of usage examples available in this repository:

* [Basic](examples/basic)
* [ES Modules](examples/es-modules)
* [TypeScript](examples/typescript)
Loading