Permalink
Browse files

refactoring

  • Loading branch information...
tj committed Apr 16, 2012
1 parent 5be2395 commit c998b91c0939c651ae1ff933cb4ab2669179550e
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/express
View
@@ -8,13 +8,14 @@ var exec = require('child_process').exec
, program = require('commander')
, mkdirp = require('mkdirp')
, pkg = require('../package.json')
+ , version = pkg.version
, os = require('os')
, fs = require('fs');
// CLI
program
- .version(pkg.version)
+ .version(version)
.option('-s, --sessions', 'add session support')
.option('-e, --ejs', 'add ejs engine support (defaults to jade)')
.option('-J, --jshtml', 'add jshtml engine support (defaults to jade)')
@@ -304,7 +305,7 @@ function createApplicationAt(path) {
, private: true
, scripts: { start: 'node app' }
, dependencies: {
- express: pkg.version
+ express: version
}
}

0 comments on commit c998b91

Please sign in to comment.