Joey Perrott d1ea1f4c7f build: update license headers to reference Google LLC ()
Update the license headers throughout the repository to reference Google LLC
rather than Google Inc, for the required license headers.

PR Close 
2020-05-26 14:26:58 -04:00

32 lines
915 B
JavaScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const fs = require('fs');
const path = require('path');
const sourceMapTest = require('../source-map-test');
const excludedPackages = ['bazel', 'benchpress', 'compiler-cli', 'language-service'];
module.exports = (gulp) => () => {
const packageDir = path.resolve(process.cwd(), 'dist/packages-dist/');
const packages =
fs.readdirSync(packageDir).filter(package => excludedPackages.indexOf(package) === -1);
packages.forEach(package => {
if (sourceMapTest(package).length) {
process.exit(1);
}
});
if (!packages.length) {
// tslint:disable-next-line:no-console
console.log('No packages found in packages-dist. Unable to run source map test.');
process.exit(1);
}
};