From ab5b2eec2ca8a71126cada97989de97beac63639 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Fri, 10 Apr 2020 12:09:28 +0100 Subject: [PATCH] build: also validade BUILD.bazel files --- scripts/validate-build-files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate-build-files.ts b/scripts/validate-build-files.ts index 488ccddc14..f9d1388b61 100644 --- a/scripts/validate-build-files.ts +++ b/scripts/validate-build-files.ts @@ -23,7 +23,7 @@ export default async function (_options: {}, logger: logging.Logger) { } // There should be at least one BUILD file next to each package.json. - if (!existsSync(join(pkg.root, 'BUILD'))) { + if (!existsSync(join(pkg.root, 'BUILD')) && !existsSync(join(pkg.root, 'BUILD.bazel'))) { logger.error(tags.oneLine` The package ${JSON.stringify(pkgName)} does not have a BUILD file associated to it. You must either set an exception or make sure it can be built using Bazel.