Skip to content

Commit

Permalink
fix: config with numeric indexes
Browse files Browse the repository at this point in the history
Configs formatted as:
{ shared: 'x', 0: {}, 1: {} }
resulted in a single gulp task due to checking the length property of the original config and not of the normalized config array.
  • Loading branch information
Florens Verschelde committed Mar 23, 2017
1 parent 0466068 commit ad68f2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets-builder/helpers/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const missing = require('./missing.js')
module.exports = function register(key, configs, builder) {
const taskNames = []

normalize(key, configs).forEach(function(conf, index) {
const id = key + (configs.length > 1 ? '-' + (index+1) : '')
normalize(key, configs).forEach(function(conf, index, normalized) {
const id = key + (normalized.length > 1 ? '-' + (index+1) : '')
const buildId = 'build-' + id
const watchId = 'watch-' + id

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "assets-builder",
"private": true,
"version": "3.0.1",
"version": "3.0.2",
"scripts": {
"build": "gulp build",
"watch": "gulp watch"
Expand Down

0 comments on commit ad68f2a

Please sign in to comment.