Commit 16b8a906 authored by Paul Kaplan's avatar Paul Kaplan

Actually return the mapping of extension info

parent a3afa5e4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment