Skip to content

Commit b5cb453

Browse files
committed
Update glob for header insertion
1 parent e5a0cd9 commit b5cb453

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: tasks/header.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ pathsDist.forEach(headerLicense);
3232
var licenseSrc = constants.licenseSrc;
3333
var licenseStr = licenseSrc.substring(2, licenseSrc.length - 2);
3434

35-
36-
glob(path.join(constants.pathToSrc, '**/*.js'), function(err, files) {
35+
var srcGlob = path.join(constants.pathToSrc, '**/*.js');
36+
var libGlob = path.join(constants.pathToLib, '**/*.js');
37+
glob('{' + srcGlob + ',' + libGlob + '}', function(err, files){
3738
files.forEach(function(file) {
3839
fs.readFile(file, 'utf-8', function(err, code) {
3940

0 commit comments

Comments
 (0)