rename-ext 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  function renameExt(targetDir, nowExt, targetExt) {
2
2
  const fs = require('fs')
3
3
  const path = require('path')
4
- const targetFiles = fs.readdirSync(dirname)
4
+ const targetFiles = fs.readdirSync(targetDir)
5
5
  targetFiles.forEach(item => {
6
6
  const filePath = path.parse(item)
7
7
  const fileName = filePath.name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rename-ext",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"