Actually return the mapping of extension info

This commit is contained in:
Paul Kaplan 2018-12-12 15:50:40 -05:00
parent a3afa5e482
commit 16b8a90607

View file

@ -3,10 +3,9 @@ const EXTENSION_INFO = require('./extensions.js').default;
module.exports = {
// Keys match the projectVersion key from project serialization
3: {
extensions: project => {
extensions: project =>
(project.extensions || []).map(ext => EXTENSION_INFO[ext])
.filter(ext => !!ext); // Only include extensions in the info lib
},
.filter(ext => !!ext), // Only include extensions in the info lib
spriteCount: project =>
project.targets.length - 1, // don't count stage
scriptCount: project => project.targets