File tree 6 files changed +17
-7
lines changed
6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 11
11
var saneTopojson = require ( 'sane-topojson' ) ;
12
12
13
13
14
- // package version injected by `npm run preprocess`
15
- exports . version = '1.52.2' ;
14
+ exports . version = require ( '../version' ) . version ;
16
15
17
16
exports . topojson = saneTopojson ;
Original file line number Diff line number Diff line change 8
8
9
9
'use strict' ;
10
10
11
- // package version injected by `npm run preprocess`
12
- exports . version = '1.52.2' ;
11
+ exports . version = require ( './version' ) . version ;
13
12
14
13
// inject promise polyfill
15
14
require ( 'es6-promise' ) . polyfill ( ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var Lib = require('../lib');
17
17
var helpers = require ( '../snapshot/helpers' ) ;
18
18
var toSVG = require ( '../snapshot/tosvg' ) ;
19
19
var svgToImg = require ( '../snapshot/svgtoimg' ) ;
20
- var version = require ( '../core ' ) . version ;
20
+ var version = require ( '../version ' ) . version ;
21
21
22
22
var attrs = {
23
23
format : {
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright 2012-2020, Plotly, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+
9
+ 'use strict' ;
10
+
11
+ // package version injected by `npm run preprocess`
12
+ exports . version = '1.52.2' ;
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ var updateVersion = require('./util/update_version');
9
9
// main
10
10
makeBuildCSS ( ) ;
11
11
copyTopojsonFiles ( ) ;
12
- updateVersion ( constants . pathToPlotlyCore ) ;
13
- updateVersion ( constants . pathToPlotlyGeoAssetsSrc ) ;
12
+ updateVersion ( constants . pathToPlotlyVersion ) ;
14
13
15
14
// convert scss to css to js
16
15
function makeBuildCSS ( ) {
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ module.exports = {
47
47
48
48
pathToPlotlyIndex : path . join ( pathToLib , 'index.js' ) ,
49
49
pathToPlotlyCore : path . join ( pathToSrc , 'core.js' ) ,
50
+ pathToPlotlyVersion : path . join ( pathToSrc , 'version.js' ) ,
50
51
pathToPlotlyBuild : path . join ( pathToBuild , 'plotly.js' ) ,
51
52
pathToPlotlyDist : path . join ( pathToDist , 'plotly.js' ) ,
52
53
pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
You can’t perform that action at this time.
0 commit comments