1
0
Fork 0

add a way to skip tests for deprecated packages

This commit is contained in:
Enoch Riese 2022-07-04 11:05:12 -05:00
parent 69210d2296
commit fcc4ae78b5
3 changed files with 8 additions and 2 deletions

View file

@ -248,6 +248,10 @@ function packageJson(pkg) {
}
pkgConf.keywords = pkgConf.keywords.concat(keywords(pkg))
pkgConf.scripts = scripts(pkg)
if (repo.exceptions.skipTests.indexOf(pkg.name) !== -1) {
pkgConf.scripts.test = `echo "skipping tests for ${pkg.name}"`
pkgConf.scripts.testci = `echo "skipping tests for ${pkg.name}"`
}
pkgConf.dependencies = dependencies('_', pkg)
pkgConf.devDependencies = dependencies('dev', pkg)
pkgConf.peerDependencies = dependencies('peer', pkg)