@travetto/manifest
Advanced tools
Comparing version 5.0.7 to 5.0.8
{ | ||
"name": "@travetto/manifest", | ||
"version": "5.0.7", | ||
"version": "5.0.8", | ||
"description": "Support for project indexing, manifesting, along with file watching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -90,5 +90,5 @@ <!-- This file was generated by @travetto/doc and should not be modified directly --> | ||
"build": { | ||
"compilerFolder": ".trv/compiler", | ||
"compilerUrl": "http://127.0.0.1:26803", | ||
"compilerModuleFolder": "module/compiler", | ||
"compilerFolder": ".trv/compiler", | ||
"outputFolder": ".trv/output", | ||
@@ -95,0 +95,0 @@ "toolFolder": ".trv/tool", |
import { createRequire } from 'node:module'; | ||
import { execSync } from 'node:child_process'; | ||
import { existsSync } from 'node:fs'; | ||
@@ -55,3 +56,14 @@ import { path } from './path'; | ||
return path.join(resolved.split(name)[0], name); | ||
} catch { } | ||
} catch { // When import lookup fails | ||
let folder = root ?? process.cwd(); | ||
let prev = ''; | ||
while (folder !== prev) { | ||
const pkg = path.resolve(folder, 'node_modules', name, 'package.json'); | ||
if (existsSync(pkg)) { | ||
return pkg; | ||
} | ||
prev = folder; | ||
folder = path.dirname(folder); | ||
} | ||
} | ||
} | ||
@@ -58,0 +70,0 @@ throw new Error(`Unable to resolve: ${name}`); |
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
60478
1315