update version.js

This commit is contained in:
Leopoldthecoder 2017-07-20 15:32:31 +08:00 committed by 杨奕
parent 0f3d8b9e02
commit 3d24ad8e1f

View File

@ -1,6 +1,6 @@
var fs = require('fs');
var path = require('path');
var version = process.env.VERSION || require('../../package.json').version;
var content = { '1.0.9': '1.0', '1.1.6': '1.1', '1.2.9': '1.2' };
if (!content[version]) content[version] = '1.3';
var content = { '1.0.9': '1.0', '1.1.6': '1.1', '1.2.9': '1.2', '1.3.7': '1.3' };
if (!content[version]) content[version] = '1.4';
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));