From c9d4cc5c2e6fd7c3b75df2b27252e1483dde1e46 Mon Sep 17 00:00:00 2001 From: Kunal Marwaha Date: Sat, 18 Mar 2017 02:21:31 -0400 Subject: [PATCH] Filter out en from locales --- tasks/transpile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/transpile.js b/tasks/transpile.js index 5223bd85f..25011ed81 100644 --- a/tasks/transpile.js +++ b/tasks/transpile.js @@ -280,7 +280,7 @@ module.exports = function (grunt) { grunt.log.ok('build/umd/min/moment-with-locales.custom.js'); }).then(function () { var moment = require('../build/umd/min/moment-with-locales.custom.js'); - if (moment.locales().length !== localeFiles.length) { + if (moment.locales().filter(locale => locale !== 'en').length !== localeFiles.length) { throw new Error( 'You probably specified locales requiring ' + 'parent locale, but didn\'t specify parent'); -- 2.47.3