From 510d2191cf56b008986fbf428dd02c62d1724ea2 Mon Sep 17 00:00:00 2001 From: Igor Bari Date: Wed, 27 Dec 2023 15:03:12 +0100 Subject: [PATCH 1/2] Add ESM config support to README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f76f8fed..a978bb9a 100644 --- a/README.md +++ b/README.md @@ -87,13 +87,15 @@ You can then add the specific configuration options you want that aren't in that Any configuration options that can be set via the command line can also be specified in the `nyc` stanza of your package.json, or within a separate configuration file - a variety of flavors are available: -| File name | File Association | -|-----------------|------------------| -| `.nycrc` | JSON | -| `.nycrc.json` | JSON | -| `.nycrc.yaml` | YAML | -| `.nycrc.yml` | YAML | -| `nyc.config.js` | CommonJS export | +| File name | File Association | +|------------------|------------------| +| `.nycrc` | JSON | +| `.nycrc.json` | JSON | +| `.nycrc.yaml` | YAML | +| `.nycrc.yml` | YAML | +| `nyc.config.js` | CommonJS export | +| `nyc.config.cjs` | CommonJS export | +| `nyc.config.mjs` | ESM export | ### Common Configuration Options From 05d1348bb4ae38a8d3f7d57454bec74c13455726 Mon Sep 17 00:00:00 2001 From: Igor Bari Date: Wed, 27 Dec 2023 15:08:48 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a978bb9a..e171af44 100644 --- a/README.md +++ b/README.md @@ -87,15 +87,15 @@ You can then add the specific configuration options you want that aren't in that Any configuration options that can be set via the command line can also be specified in the `nyc` stanza of your package.json, or within a separate configuration file - a variety of flavors are available: -| File name | File Association | -|------------------|------------------| -| `.nycrc` | JSON | -| `.nycrc.json` | JSON | -| `.nycrc.yaml` | YAML | -| `.nycrc.yml` | YAML | -| `nyc.config.js` | CommonJS export | -| `nyc.config.cjs` | CommonJS export | -| `nyc.config.mjs` | ESM export | +| File name | File Association | +|------------------|---------------------------------------------| +| `.nycrc` | JSON | +| `.nycrc.json` | JSON | +| `.nycrc.yaml` | YAML | +| `.nycrc.yml` | YAML | +| `nyc.config.js` | ESM / CommonJS export based on package type | +| `nyc.config.cjs` | CommonJS export | +| `nyc.config.mjs` | ESM export | ### Common Configuration Options