nano-staged
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "nano-staged", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Tool to run commands only on git staged files", | ||
@@ -5,0 +5,0 @@ "author": "Usman Yunusov <usman.iunusov@gmail.com>", |
import { normalize, relative, resolve, isAbsolute } from 'path' | ||
import { CHANGED_CODE, DELETED_CODE } from '../git/index.js' | ||
import { glob } from '../glob/index.js' | ||
import { globToRegex } from '../glob-to-regex/index.js' | ||
@@ -18,3 +18,3 @@ export function prepareFiles({ | ||
for (let pattern of Object.keys(config)) { | ||
let matches = glob(pattern, { filepath: true, extended: true }) | ||
let matches = globToRegex(pattern, { extended: true, globstar: pattern.includes('/') }) | ||
@@ -21,0 +21,0 @@ for (let { path, type, rename } of entries) { |
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
26249
833