Comparing version 0.2.12 to 0.2.14
@@ -41,5 +41,5 @@ "use strict"; | ||
/** | ||
* Loads closes package.json in the directory hierarchy | ||
* Loads closest package.json in the directory hierarchy | ||
*/ | ||
function loadClosesPackageJson(attempts) { | ||
function loadClosestPackageJson(attempts) { | ||
if (attempts === void 0) { attempts = 1; } | ||
@@ -54,6 +54,6 @@ if (attempts > 5) { | ||
catch (e) { | ||
return loadClosesPackageJson(attempts + 1); | ||
return loadClosestPackageJson(attempts + 1); | ||
} | ||
} | ||
var packageConfig = loadClosesPackageJson(); | ||
var packageConfig = loadClosestPackageJson(); | ||
var isEsmProject = packageConfig.type === 'module'; | ||
@@ -60,0 +60,0 @@ // Jest use the `vm` [Module API](https://nodejs.org/api/vm.html#vm_class_vm_module) for ESM. |
{ | ||
"name": "@swc/jest", | ||
"version": "0.2.12", | ||
"version": "0.2.14", | ||
"description": "swc integration for jest", | ||
@@ -38,5 +38,2 @@ "main": "index.js", | ||
], | ||
"engines": { | ||
"npm": ">= 7.0.0" | ||
}, | ||
"workspaces": [ | ||
@@ -43,0 +40,0 @@ "examples/*" |
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
7429