File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var prependFile = require('prepend-file');
2
2
var constants = require ( './util/constants' ) ;
3
3
var common = require ( './util/common' ) ;
4
4
5
- ( function addHeadersInDistFiles ( ) {
5
+ function addHeadersInDistFiles ( ) {
6
6
function _prepend ( path , header ) {
7
7
prependFile ( path , header + '\n' , common . throwOnError ) ;
8
8
}
@@ -28,4 +28,6 @@ var common = require('./util/common');
28
28
. replace ( 'plotly.js' , 'plotly.js (' + pathObj . name + ' - minified)' ) ;
29
29
_prepend ( pathObj . distMin , headerDistMin ) ;
30
30
} ) ;
31
- } ) ( ) ;
31
+ }
32
+
33
+ addHeadersInDistFiles ( ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var glob = require('glob');
6
6
var constants = require ( './util/constants' ) ;
7
7
var common = require ( './util/common' ) ;
8
8
9
- ( function updateHeadersInSrcAndLibFiles ( ) {
9
+ function updateHeadersInSrcAndLibFiles ( ) {
10
10
var srcGlob = path . join ( constants . pathToSrc , '**/*.js' ) ;
11
11
var libGlob = path . join ( constants . pathToLib , '**/*.js' ) ;
12
12
@@ -60,4 +60,6 @@ var common = require('./util/common');
60
60
61
61
return ( header . value . replace ( regex , '' ) === licenseStr . replace ( regex , '' ) ) ;
62
62
}
63
- } ) ( ) ;
63
+ }
64
+
65
+ updateHeadersInSrcAndLibFiles ( ) ;
You can’t perform that action at this time.
0 commit comments