@babel/helper-fixtures
Advanced tools
Comparing version 7.14.5 to 7.16.0
@@ -6,6 +6,6 @@ "use strict"; | ||
}); | ||
exports.resolveOptionPluginOrPreset = resolveOptionPluginOrPreset; | ||
exports.default = get; | ||
exports.multiple = multiple; | ||
exports.readFile = readFile; | ||
exports.resolveOptionPluginOrPreset = resolveOptionPluginOrPreset; | ||
@@ -55,3 +55,3 @@ var _semver = require("semver"); | ||
const EXTENSIONS = [".js", ".mjs", ".ts", ".tsx"]; | ||
const EXTENSIONS = [".js", ".mjs", ".ts", ".tsx", ".cts", ".mts"]; | ||
@@ -119,2 +119,3 @@ function findFile(filepath, allowJSON) { | ||
options: taskOpts, | ||
doNotSetSourceType: taskOpts.DO_NOT_SET_SOURCE_TYPE, | ||
externalHelpers: (_taskOpts$externalHel = taskOpts.externalHelpers) != null ? _taskOpts$externalHel : !!tryResolve("@babel/plugin-external-helpers"), | ||
@@ -151,2 +152,3 @@ validateLogs: taskOpts.validateLogs, | ||
delete taskOpts.BABEL_8_BREAKING; | ||
delete taskOpts.DO_NOT_SET_SOURCE_TYPE; | ||
@@ -252,5 +254,16 @@ if (taskOpts.minNodeVersion) { | ||
} else { | ||
const monorepoPath = _path.join(_path.dirname(__filename), "../..", `babel-${type}-${val[0]}`); | ||
let name = val[0]; | ||
const match = name.match(/^(@babel\/(?:plugin-|preset-)?)(.*)$/); | ||
if (match) { | ||
name = match[2]; | ||
} | ||
const monorepoPath = _path.join(_path.dirname(__filename), "../..", `babel-${type}-${name}`); | ||
if (_fs.existsSync(monorepoPath)) { | ||
if (match) { | ||
throw new Error(`Remove the "${match[1]}" prefix from "${val[0]}", to load it from the monorepo`); | ||
} | ||
val[0] = monorepoPath; | ||
@@ -257,0 +270,0 @@ } |
{ | ||
"name": "@babel/helper-fixtures", | ||
"version": "7.14.5", | ||
"version": "7.16.0", | ||
"description": "Helper function to support fixtures", | ||
@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
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
11177
265