MCPcopy Create free account
hub / github.com/TanStack/cli / getDirectoryPackageName

Function getDirectoryPackageName

packages/cli/src/utils.ts:21–23  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

19}
20
21export function getDirectoryPackageName(directory: string): string {
22 return sanitizePackageName(basename(resolve(directory))) || FALLBACK_PACKAGE_NAME
23}
24
25export function getCurrentDirectoryPackageName(): string {
26 return getDirectoryPackageName(process.cwd())

Callers 2

resolveProjectLocationFunction · 0.85

Calls 1

sanitizePackageNameFunction · 0.85

Tested by

no test coverage detected