mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 17:13:45 +03:00
Ignore invalid modules
This commit is contained in:
parent
637c53dbb4
commit
3d15810b1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user