From 3d15810b1b89b11148e31fd1441d647c5fbc0812 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 10 Feb 2015 18:54:29 -0800 Subject: [PATCH] Ignore invalid modules --- build/tasks/output-module-counts.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/tasks/output-module-counts.coffee b/build/tasks/output-module-counts.coffee index 266656720..be195a337 100644 --- a/build/tasks/output-module-counts.coffee +++ b/build/tasks/output-module-counts.coffee @@ -9,6 +9,8 @@ module.exports = (grunt) -> return if fileName isnt 'package.json' {name, version} = grunt.file.readJSON(absolutePath) + return unless name and version + modules[name] ?= {versions: {}, count: 0} modules[name].count++ modules[name].versions[version] = true