Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a stupid issue with the version command.

  • Loading branch information...
commit f00bdb234a00308f48ae65b6aac7a1111da759a3 1 parent c100f17
@jarod2d authored
Showing with 6 additions and 1 deletion.
  1. +4 −0 README.md
  2. +2 −1  bin/squire
View
4 README.md
@@ -353,6 +353,10 @@ Look at the documentation for each plugin to see the config values it supports.
## Changelog ##
+#### 1.1.3 ####
+
+* Fixed an issue with the version command.
+
#### 1.1.2 ####
* The current version can now be inspected by running `squire version`.
View
3  bin/squire
@@ -31,7 +31,8 @@ getTemplateList = ->
# A helper function that will return the current version.
getVersion = ->
- file = lib.fs.readFileSync("package.json").toString()
+ packagePath = lib.path.join __dirname, "../package.json"
+ file = lib.fs.readFileSync(packagePath).toString()
"v" + JSON.parse(file).version
Please sign in to comment.
Something went wrong with that request. Please try again.