Skip to content

Commit 9020193

Browse files
committed
Removed cruft
1 parent 4d564a6 commit 9020193

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

site/default/static/build.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
var stealTools = require("steal-tools");
2-
var fsExtra = require('fs-extra');
32
var fsx = require('../../../../fs_extras');
43
var Q = require('q');
54
var path = require("path");
6-
var copy = Q.denodeify(fsExtra.copy);
75

86
module.exports = function(options, folders){
97
var copyDir = function(name){
@@ -19,11 +17,10 @@ module.exports = function(options, folders){
1917
var staticDistPromises = [];
2018
if(options.html && options.html.staticDist){
2119
options.html.staticDist.forEach(function(dist){
22-
var out = path.join(__dirname, '..', '..', '..', '..', folders.dist);
2320
if(!path.isAbsolute(dist)){
2421
dist = path.join(process.cwd(), dist);
2522
}
26-
staticDistPromises.push(copy(dist, out));
23+
staticDistPromises.push(fsx.copyFrom(dist, folders.dist));
2724
});
2825
}
2926

0 commit comments

Comments
 (0)