@travetto/manifest
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "@travetto/manifest", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Support for project indexing, manifesting, along with file watching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -54,3 +54,3 @@ import { existsSync, readFileSync } from 'node:fs'; | ||
*/ | ||
function resolveWorkspace(base: string): Workspace { | ||
function resolveWorkspace(base: string = process.cwd()): Workspace { | ||
if (base in WS_ROOT) { return WS_ROOT[base]; } | ||
@@ -101,3 +101,3 @@ let folder = base; | ||
*/ | ||
function resolveModule(workspace: Workspace, folder: string): Pkg { | ||
function resolveModule(workspace: Workspace, folder?: string): Pkg { | ||
let mod; | ||
@@ -134,4 +134,4 @@ if (!folder && process.env.TRV_MODULE) { | ||
*/ | ||
export function getManifestContext(folder = process.cwd()): ManifestContext { | ||
const workspace = resolveWorkspace(folder); | ||
export function getManifestContext(folder?: string): ManifestContext { | ||
const workspace = resolveWorkspace(); | ||
const mod = resolveModule(workspace, folder); | ||
@@ -138,0 +138,0 @@ const build = workspace.travetto?.build ?? {}; |
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
61731