Skip to content

Commit 473250a

Browse files
committed
find date year using new Date for licenses
1 parent 4d3c977 commit 473250a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/util/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ var pathToTopojsonSrc = path.join(
1212
path.dirname(require.resolve('sane-topojson')), 'dist/'
1313
);
1414

15+
var year = (new Date()).getFullYear();
16+
1517
module.exports = {
1618
pathToRoot: pathToRoot,
1719
pathToSrc: pathToSrc,
@@ -58,7 +60,7 @@ module.exports = {
5860
licenseDist: [
5961
'/**',
6062
'* plotly.js v' + pkg.version,
61-
'* Copyright 2012-2015, Plotly, Inc.',
63+
'* Copyright 2012-' + year + ', Plotly, Inc.',
6264
'* All rights reserved.',
6365
'* Licensed under the MIT license',
6466
'*/'

0 commit comments

Comments
 (0)