MCPcopy
hub / github.com/directus/directus / toConvertSourceUrl

Function toConvertSourceUrl

packages/extensions-sdk/src/cli/commands/add.ts:240–241  ·  view source on GitHub ↗
(entrypoint: string)

Source from the content-addressed store, hash-verified

238 await copyTemplate(type, extensionPath, entrySourcePath, language);
239
240 const toConvertSourceUrl = (entrypoint: string) =>
241 path.posix.join(pathToRelativeUrl(source), convertName, path.posix.relative(source, entrypoint));
242
243 const entries: ExtensionOptionsBundleEntry[] = [
244 isTypeIn(extensionOptions, HYBRID_EXTENSION_TYPES)

Callers 1

addFunction · 0.85

Calls 2

pathToRelativeUrlFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected