Permalink
Browse files

use version of `package.json` for `express` command

  • Loading branch information...
1 parent e3e7d0d commit f61df956b1231278f7f9b59ff053392d57e67822 @nulltask nulltask committed Apr 24, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 bin/express
View
@@ -10,10 +10,16 @@ var fs = require('fs')
, mkdirp = require('mkdirp');
/**
+ * Package information.
+ */
+
+var pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json'));
+
+/**
* Framework version.
*/
-var version = '2.5.8';
+var version = pkg.version;
/**
* Add session support.

0 comments on commit f61df95

Please sign in to comment.