Skip to content

Commit

Permalink
fix: remove tap 16 specific config when using tap 18
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Nov 5, 2023
1 parent ecca70e commit b3e3852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ const getFullConfig = async ({
workspaceGlobs: workspacePaths.map(posixGlob),
// cjs
cjsExt,
// tap
tap18: semver.coerce(pkg.pkgJson?.devDependencies?.tap)?.major === 18,
// booleans to control application of updates
isForce,
isDogFood,
Expand Down
4 changes: 2 additions & 2 deletions lib/content/pkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
{{#if workspacePaths}}
"test-ignore": "^({{ join workspacePaths "|" }})/",
{{/if}}
"nyc-arg": [
"nyc-arg": {{#if tap18}}{{{ del }}}{{else}}[
{{#each workspaceGlobs}}
"--exclude",
"{{ . }}",
{{/each}}
"--exclude",
"tap-snapshots/**"
]
]{{/if}}
}
}

0 comments on commit b3e3852

Please sign in to comment.