Permalink
Browse files

Use package.json's version number

  • Loading branch information...
1 parent 220f5c4 commit ee64152042e89d7e18d6b170cd21bacbd692bce9 @Constellation Constellation committed Mar 24, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/esmangle.js
View
@@ -28,15 +28,11 @@
(function () {
'use strict';
- var VERSION,
- escope,
+ var escope,
common,
Syntax,
annotateDirective;
- // Sync with package.json.
- VERSION = '0.0.11-dev';
-
escope = require('escope');
common = require('./common');
annotateDirective = require('./annotate-directive');
@@ -317,7 +313,7 @@
return require.apply(null, args);
}
- exports.version = VERSION;
+ exports.version = require('../package.json').version;
exports.mangle = mangle;
exports.optimize = optimize;
exports.require = esmangle_require;

0 comments on commit ee64152

Please sign in to comment.