eslint-plugin-kerfjs 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,6 +39,13 @@ function resolveManifestPath(cwd) {
|
|
|
39
39
|
const req = createRequire(join(cwd, 'noop.js'));
|
|
40
40
|
return req.resolve('kerfjs/ai/manifest.json');
|
|
41
41
|
} catch {
|
|
42
|
+
// Fallback: kerfjs versions before the `./ai/*` exports entry landed
|
|
43
|
+
// block subpath resolution under Node's strict `exports` rules
|
|
44
|
+
// (ERR_PACKAGE_PATH_NOT_EXPORTED). Look directly at the package on disk —
|
|
45
|
+
// good enough for the plain-npm layout, and the rule should fire for
|
|
46
|
+
// those installs too rather than silently no-op.
|
|
47
|
+
const direct = join(cwd, 'node_modules', 'kerfjs', 'ai', 'manifest.json');
|
|
48
|
+
if (existsSync(direct)) return direct;
|
|
42
49
|
return null;
|
|
43
50
|
}
|
|
44
51
|
}
|