@after-work.js/utils
Advanced tools
Comparing version 6.0.8 to 6.0.9
{ | ||
"name": "@after-work.js/utils", | ||
"version": "6.0.8", | ||
"version": "6.0.9", | ||
"publishConfig": { | ||
@@ -32,3 +32,3 @@ "access": "public" | ||
}, | ||
"gitHead": "d378b286995865f9b8cdd0692a8b921cf412796b" | ||
"gitHead": "7f52275658e0671e9cf2e6869c60b7cb2121aa30" | ||
} |
@@ -22,6 +22,8 @@ /* eslint max-len: 0, import/no-dynamic-require: 0, global-require: 0 */ | ||
const DEFAULT_TEST_EXT_PATTERN = '*.{spec,test}.{js,jsx,ts,tsx}'; | ||
const DEFAULT_EXT = ['js', 'ts', 'jsx', 'tsx']; | ||
const DEFAULT_TEST_EXT_PATTERN = `*.{spec,test}.{${DEFAULT_EXT.join(',')}}`; | ||
const DEFAULT_TEST_GLOB_PATTERN = `**/${DEFAULT_TEST_EXT_PATTERN}`; | ||
const DEFAULT_SRC_EXT_PATTERN = '*.{js,ts,jsx,tsx}'; | ||
const DEFAULT_SRC_EXT_PATTERN = `*.{${DEFAULT_EXT.join(',')}}`; | ||
const DEFAULT_SRC_GLOB_PATTERN = `**/${DEFAULT_SRC_EXT_PATTERN}`; | ||
@@ -152,8 +154,12 @@ const DEFAULT_SRC_EXCLUDE_PATTERN = [ | ||
} | ||
argv.glob = argv.glob.map(g => g.replace(/\\/g, '/')); | ||
if (argv.src === SRC_GLOB) { | ||
argv.src = getSrcGlob(argv); | ||
} | ||
argv.src = argv.src.map(g => g.replace(/\\/g, '/')); | ||
if (argv.watchGlob === WATCH_GLOB) { | ||
argv.watchGlob = [...argv.glob, ...argv.src]; | ||
} | ||
argv.watchGlob = argv.watchGlob.map(g => g.replace(/\\/g, '/')); | ||
argv.nyc.exclude = [ | ||
@@ -187,2 +193,3 @@ ...argv.nyc.exclude, | ||
WATCH_GLOB, | ||
DEFAULT_EXT, | ||
DEFAULT_TEST_EXT_PATTERN, | ||
@@ -189,0 +196,0 @@ DEFAULT_TEST_GLOB_PATTERN, |
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
11715
349