mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-25 20:29:45 -04:00
Actually return the mapping of extension info
This commit is contained in:
parent
a3afa5e482
commit
16b8a90607
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue