Skip to content

Commit

Permalink
ES Modules support (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocassio authored Jan 24, 2022
1 parent b9e5d59 commit 1f29b62
Show file tree
Hide file tree
Showing 12 changed files with 9,696 additions and 81 deletions.
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

0 comments on commit 1f29b62

Please sign in to comment.