@after-work.js/utils
Advanced tools
Comparing version 5.0.0-alpha.10 to 5.0.0-alpha.11
{ | ||
"name": "@after-work.js/utils", | ||
"version": "5.0.0-alpha.10", | ||
"version": "5.0.0-alpha.11", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -59,3 +59,3 @@ const fs = require('fs'); | ||
coerceBabel(opt) { | ||
if (opt.enable && opt.core) { | ||
if (opt.enable && opt.core && typeof opt.core === 'string') { | ||
opt.babel = importCwd(opt.core); // eslint-disable-line no-param-reassign | ||
@@ -72,3 +72,5 @@ } else if (opt.enable && !opt.core) { | ||
} | ||
opt.babelPluginIstanbul = importCwd(opt.babelPluginIstanbul).default; // eslint-disable-line no-param-reassign, max-len | ||
if (typeof opt.babelPluginIstanbul === 'string') { | ||
opt.babelPluginIstanbul = importCwd(opt.babelPluginIstanbul).default; // eslint-disable-line no-param-reassign, max-len | ||
} | ||
return opt; | ||
@@ -75,0 +77,0 @@ }, |
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
2655
81