File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed
Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1111var saneTopojson = require ( 'sane-topojson' ) ;
1212
1313
14- // package version injected by `npm run preprocess`
15- exports . version = '1.52.2' ;
14+ exports . version = require ( '../version' ) . version ;
1615
1716exports . topojson = saneTopojson ;
Original file line number Diff line number Diff line change 88
99'use strict' ;
1010
11- // package version injected by `npm run preprocess`
12- exports . version = '1.52.2' ;
11+ exports . version = require ( './version' ) . version ;
1312
1413// inject promise polyfill
1514require ( 'es6-promise' ) . polyfill ( ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var Lib = require('../lib');
1717var helpers = require ( '../snapshot/helpers' ) ;
1818var toSVG = require ( '../snapshot/tosvg' ) ;
1919var svgToImg = require ( '../snapshot/svgtoimg' ) ;
20- var version = require ( '../core ' ) . version ;
20+ var version = require ( '../version ' ) . version ;
2121
2222var attrs = {
2323 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');
99// main
1010makeBuildCSS ( ) ;
1111copyTopojsonFiles ( ) ;
12- updateVersion ( constants . pathToPlotlyCore ) ;
13- updateVersion ( constants . pathToPlotlyGeoAssetsSrc ) ;
12+ updateVersion ( constants . pathToPlotlyVersion ) ;
1413
1514// convert scss to css to js
1615function makeBuildCSS ( ) {
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ module.exports = {
4747
4848 pathToPlotlyIndex : path . join ( pathToLib , 'index.js' ) ,
4949 pathToPlotlyCore : path . join ( pathToSrc , 'core.js' ) ,
50+ pathToPlotlyVersion : path . join ( pathToSrc , 'version.js' ) ,
5051 pathToPlotlyBuild : path . join ( pathToBuild , 'plotly.js' ) ,
5152 pathToPlotlyDist : path . join ( pathToDist , 'plotly.js' ) ,
5253 pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
You can’t perform that action at this time.
0 commit comments