@@ -19,17 +19,16 @@ module.exports = function(options, folders){
19
19
var staticDistPromises = [ ] ;
20
20
if ( options . html && options . html . staticDist ) {
21
21
options . html . staticDist . forEach ( function ( dist ) {
22
- staticDistPromises . push ( copy ( dist , folders . dist ) ) ;
22
+ var out = path . join ( __dirname , '..' , '..' , '..' , '..' , folders . dist ) ;
23
+ staticDistPromises . push ( copy ( dist , out ) ) ;
23
24
} ) ;
24
25
}
25
26
26
27
if ( options . devBuild ) {
27
28
// copy all dependencies
28
- var promise = Q . all ( [
29
- fsx . copy ( path . join ( folders . build ) , path . join ( folders . dist ) )
30
- ] . concat ( staticDistPromises ) ) ;
29
+ staticDistPromises . push ( fsx . copy ( path . join ( folders . build ) , path . join ( folders . dist ) ) ) ;
31
30
// copy everything and steal.js
32
- return promise ;
31
+ return Q . all ( staticDistPromises ) ;
33
32
} else {
34
33
35
34
// run steal-tools and then copy things
@@ -46,11 +45,9 @@ module.exports = function(options, folders){
46
45
console . log ( "BUILD: Copying build to dist." ) ;
47
46
}
48
47
49
- var promise = Q . all ( [
50
- fsx . copy ( path . join ( folders . build , "dist" ) , path . join ( folders . dist ) )
51
- ] . concat ( staticDistPromises ) ) ;
48
+ staticDistPromises . push ( fsx . copy ( path . join ( folders . build , "dist" ) , path . join ( folders . dist ) ) ) ;
52
49
53
- return promise ;
50
+ return Q . all ( staticDistPromises ) ;
54
51
} ) ;
55
52
}
56
53
} ;
0 commit comments