From 71fcab3571ba99131acd91c1c7b44fb38a5f6083 Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 5 Aug 2024 10:38:49 -0700 Subject: [PATCH] fix: omit nyc config for all tap versions above 18 --- lib/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config.js b/lib/config.js index 86ad9fb4..a3912cc0 100644 --- a/lib/config.js +++ b/lib/config.js @@ -169,7 +169,8 @@ const getFullConfig = async ({ cjsExt: esm ? 'cjs' : 'js', deleteJsExt: esm ? 'js' : 'cjs', // tap - tap18: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major === 18, + // 18 and up doesn't like nyc-arg + tap18: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major >= 18, tap16: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major === 16, // booleans to control application of updates isForce,