@rushstack/eslint-patch
Advanced tools
Comparing version 1.3.0 to 1.3.1
declare const path: any; | ||
declare const fs: any; | ||
declare const isModuleResolutionError: (ex: unknown) => boolean; | ||
declare const isInvalidImporterPath: (ex: unknown) => boolean; | ||
declare let eslintrcBundlePath: string | undefined; | ||
@@ -5,0 +6,0 @@ declare let configArrayFactoryPath: string | undefined; |
@@ -13,2 +13,4 @@ "use strict"; | ||
const isModuleResolutionError = (ex) => typeof ex === 'object' && !!ex && 'code' in ex && ex.code === 'MODULE_NOT_FOUND'; | ||
// error: "The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received ''" | ||
const isInvalidImporterPath = (ex) => (ex === null || ex === void 0 ? void 0 : ex.code) === 'ERR_INVALID_ARG_VALUE'; | ||
// Module path for eslintrc.cjs | ||
@@ -190,3 +192,3 @@ // Example: ".../@eslint/eslintrc/dist/eslintrc.cjs" | ||
catch (e) { | ||
if (isModuleResolutionError(e)) { | ||
if (isModuleResolutionError(e) || isInvalidImporterPath(e)) { | ||
return originalResolve.call(this, moduleName, relativeToPath); | ||
@@ -193,0 +195,0 @@ } |
{ | ||
"name": "@rushstack/eslint-patch", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A patch that improves how ESLint loads plugins when working in a monorepo with a reusable toolchain", | ||
@@ -24,4 +24,4 @@ "main": "lib/usage.js", | ||
"devDependencies": { | ||
"@rushstack/heft": "0.50.4", | ||
"@rushstack/heft-node-rig": "1.12.10", | ||
"@rushstack/heft": "0.51.0", | ||
"@rushstack/heft-node-rig": "2.0.1", | ||
"@types/node": "14.18.36" | ||
@@ -31,4 +31,4 @@ }, | ||
"build": "heft build --clean", | ||
"_phase:build": "heft build --clean" | ||
"_phase:build": "heft run --only build -- --clean" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33855
250