From b14a37eca48c065a1142e8e96e8454316db8afa2 Mon Sep 17 00:00:00 2001 From: godu Date: Wed, 5 Jun 2019 15:30:22 +0200 Subject: [PATCH] Adds ts-node/register/transpile-only as require option --- packages/nyc-config-typescript/README.md | 2 +- packages/nyc-config-typescript/index.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nyc-config-typescript/README.md b/packages/nyc-config-typescript/README.md index c0bbc96c..2704b766 100644 --- a/packages/nyc-config-typescript/README.md +++ b/packages/nyc-config-typescript/README.md @@ -23,7 +23,7 @@ And write a `.nycrc` that looks like this: } ``` -This package specifies the `cache`, `exclude`, and `extension` options for you - only override those if you absolutely must. +This package specifies the `cache`, `require`, `exclude`, and `extension` options for you - only override those if you absolutely must. ## Running Tests diff --git a/packages/nyc-config-typescript/index.json b/packages/nyc-config-typescript/index.json index 1341e4a2..1796e71d 100644 --- a/packages/nyc-config-typescript/index.json +++ b/packages/nyc-config-typescript/index.json @@ -13,5 +13,8 @@ "**/*{.,-}{test,spec}.ts", "**/__tests__/**", "**/node_modules/**" + ], + "require": [ + "ts-node/register/transpile-only" ] }