metalsmith-renamer
Advanced tools
Comparing version 0.2.1 to 0.2.2
'use strict'; | ||
var minimatch = require('minimatch'); | ||
var minimatch = require('minimatch'), | ||
path = require('path'); | ||
@@ -16,5 +17,3 @@ module.exports = plugin; | ||
files[file].path.name = options[opt].rename; | ||
files[file].path.base = options[opt].rename; | ||
var renamedEntry = files[file].path.dir + "/" + options[opt].rename; | ||
var renamedEntry = path.dirname(file) + "/" + options[opt].rename; | ||
files[renamedEntry] = files[file]; | ||
@@ -21,0 +20,0 @@ delete files[file]; |
{ | ||
"name": "metalsmith-renamer", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Plugin to take a pattern and rename each matched file", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4966
20