build: exclude workspace json test files from core package

This commit is contained in:
Charles Lyding 2021-02-17 12:19:05 -05:00 committed by Alan Agius
parent d720d3db73
commit c9868325a2

View File

@ -259,6 +259,9 @@ export default async function(
if (fileName.startsWith('test/') || fileName.startsWith('test\\')) { if (fileName.startsWith('test/') || fileName.startsWith('test\\')) {
return false; return false;
} }
if (pkg.name === '@angular-devkit/core' && fileName.startsWith('src/workspace/json/test')) {
return false;
}
// Remove Bazel files from NPM. // Remove Bazel files from NPM.
if (fileName === 'BUILD' || fileName === 'BUILD.bazel') { if (fileName === 'BUILD' || fileName === 'BUILD.bazel') {