mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
build: remove validate-build-files script
Since we exclusively build with Bazel now, this check is unnecessary.
This commit is contained in:
parent
846d63c071
commit
460e6aee16
@ -1,34 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
import { existsSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { releasePackages } from './packages.mjs';
|
||||
|
||||
export default async function (_options: {}) {
|
||||
let error = false;
|
||||
|
||||
for (const pkg of releasePackages) {
|
||||
// There should be at least one BUILD file next to each package.json.
|
||||
if (!existsSync(join(pkg.root, 'BUILD')) && !existsSync(join(pkg.root, 'BUILD.bazel'))) {
|
||||
console.error(
|
||||
`The package ${JSON.stringify(pkg.name)} does not have a BUILD file associated to it.\n` +
|
||||
'You must either set an exception or make sure it can be built using Bazel.',
|
||||
);
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: enable this to break
|
||||
if (error) {
|
||||
// process.exit(1);
|
||||
console.warn('Found some BUILD files missing, which will be breaking your PR soon.');
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
@ -8,7 +8,6 @@
|
||||
|
||||
import { execSync } from 'child_process';
|
||||
import templates from './templates.mjs';
|
||||
import validateBuildFiles from './validate-build-files.mjs';
|
||||
import validateLicenses from './validate-licenses.mjs';
|
||||
import validateUserAnalytics from './validate-user-analytics.mjs';
|
||||
|
||||
@ -39,10 +38,6 @@ export default async function (options: { verbose: boolean }) {
|
||||
console.info('Running license validation...');
|
||||
error = (await validateLicenses({})) != 0 || error;
|
||||
|
||||
console.info('');
|
||||
console.info('Running BUILD files validation...');
|
||||
error = (await validateBuildFiles({})) != 0 || error;
|
||||
|
||||
console.info('');
|
||||
console.info('Running User Analytics validation...');
|
||||
error = (await validateUserAnalytics({})) != 0 || error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user