Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[merge] sync with master

  • Loading branch information...
commit 92bcae20d24bccd91578d4765b7337ffb2f04042 2 parents dafea1b + 69396e4
@hij1nx authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  README.md
  2. +1 −1  lib/codesurgeon.js
View
1  README.md
@@ -172,6 +172,7 @@ The constructor function provides an instance of the Codesurgen.
@param conf {Object} a json object literal that can contain configuration options.
@member encoding {String} the encoding that will be used to product the result.
@member quiet {String} indicate how much logging you want Codesurgen to produce.
+ @member noVersion {Boolean} true if you don't want Codesurgeon to automatically version your output filename.
```
## Instance Methods
View
2  lib/codesurgeon.js
@@ -475,7 +475,7 @@ Codesurgeon.prototype.write = function (file, callback, flags) {
!this.options.quiet && console.log('Write file [' + file.green + ']');
if(this.packageJSON) {
- if(file.substr(-3) === '.js') {
+ if(!this.options.noVersion && file.substr(-3) === '.js') {
//
// assume that the part of the name before the first dot is the name
Please sign in to comment.
Something went wrong with that request. Please try again.