nano-staged
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "nano-staged", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Tool to run commands only on git staged files", | ||
@@ -5,0 +5,0 @@ "author": "Usman Yunusov <usman.iunusov@gmail.com>", |
@@ -18,3 +18,3 @@ import { normalize, relative, resolve, isAbsolute } from 'path' | ||
for (let pattern of Object.keys(config)) { | ||
let matches = glob(pattern, { globstar: true, filepath: true, extended: true }) | ||
let matches = glob(pattern, { filepath: true, extended: true }) | ||
@@ -31,3 +31,3 @@ for (let { path, type, rename } of entries) { | ||
if (stagedFiles.indexOf(path) === -1) { | ||
if (!stagedFiles.includes(path)) { | ||
if (type === CHANGED_CODE) { | ||
@@ -34,0 +34,0 @@ changedFiles.push(path) |
24634