Skip to content

Commit 6ef5c38

Browse files
committed
Build: Fix manifest dependencies
Clone bower dependencies instead of reusing and modifying the same object multiple times.
1 parent 56e092d commit 6ef5c38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build/tasks/build.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
3838
bower = grunt.file.readJSON( "bower.json" );
3939

4040
Object.keys( plugins ).forEach(function( plugin ) {
41-
var manifest,
41+
var manifest, bowerKey,
4242
data = plugins[ plugin ],
4343
name = plugin.charAt( 0 ).toUpperCase() + plugin.substr( 1 );
4444

@@ -65,11 +65,15 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
6565
docs: data.docs || replace( baseManifest.docs ||
6666
"http://api.jqueryui.com/{plugin}/" ),
6767
download: "http://jqueryui.com/download/",
68-
dependencies: bower.dependencies,
68+
dependencies: {},
6969
// custom
7070
category: data.category || type
7171
};
7272

73+
for ( bowerKey in bower.dependencies ) {
74+
manifest.dependencies[ bowerKey ] = bower.dependencies[ bowerKey ];
75+
}
76+
7377
(baseManifest.dependencies || [])
7478
.concat(data.dependencies || [])
7579
.forEach(function( dependency ) {

0 commit comments

Comments
 (0)