From 6b7b4ee891323dd8e6a3307258e8b5c4cbe3585d Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 26 Jun 2019 21:22:03 +0300 Subject: [PATCH] build: fix formatting tasks by ignoring the `zone.js/` directory (#31295) This was causing issues, because `zone.js` looks like a JS file (despite it being a directory). The contents of `zone.js/` are still matched by the globs (it is only the directory itself that is excluded). Related to #30962. PR Close #31295 --- tools/gulp-tasks/format.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gulp-tasks/format.js b/tools/gulp-tasks/format.js index 20b0ce77d1..11f5393934 100644 --- a/tools/gulp-tasks/format.js +++ b/tools/gulp-tasks/format.js @@ -11,6 +11,7 @@ const {I18N_FOLDER, I18N_DATA_FOLDER} = require('./cldr/extract'); // clang-format entry points const srcsToFmt = [ 'packages/**/*.{js,ts}', + '!packages/zone.js', // Ignore the `zone.js/` directory itself. (The contents are still matched.) `!${I18N_DATA_FOLDER}/**/*.{js,ts}`, `!${I18N_FOLDER}/available_locales.ts`, `!${I18N_FOLDER}/currencies.ts`,