MCPcopy
hub / github.com/triggerdotdev/trigger.dev / resolvePath

Function resolvePath

packages/cli/src/utils/parseNameAndPath.ts:4–6  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

2
3// Takes a relative path (like .) and resolves it to a full path (like /Users/username/Projects/my-triggers)
4export const resolvePath = (input: string) => {
5 return pathModule.resolve(process.cwd(), input);
6};
7
8// Takes an absolute path and derives the relative path from the current working directory
9export const relativePath = (input: string) => {

Callers 5

whoamiCommandFunction · 0.90
sendEventCommandFunction · 0.90
createIntegrationCommandFunction · 0.90
initCommandFunction · 0.90
devCommandFunction · 0.90

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…