Skip to content

Commit 6a2200d

Browse files
authored
fix: omit nyc config for all tap versions above 18 (#465)
1 parent 6ee703d commit 6a2200d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ const getFullConfig = async ({
169169
cjsExt: esm ? 'cjs' : 'js',
170170
deleteJsExt: esm ? 'js' : 'cjs',
171171
// tap
172-
tap18: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major === 18,
172+
// 18 and up doesn't like nyc-arg
173+
tap18: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major >= 18,
173174
tap16: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major === 16,
174175
// booleans to control application of updates
175176
isForce,

0 commit comments

Comments
 (0)