MCPcopy
hub / github.com/stenciljs/core / join

Function join

src/utils/path.ts:230–239  ·  view source on GitHub ↗
(...paths: string[])

Source from the content-addressed store, hash-verified

228 * @returns a joined path!
229 */
230export function join(...paths: string[]): string {
231 /**
232 * When normalizing, we should _not_ attempt to relativize the path returned by the native Node `join` method. When
233 * calculating the path from each of the string-based parts, Node does not prepend './' to any calculated path.
234 *
235 * Note that our algorithm does differ from Node's, as described in this function's JSDoc regarding trailing
236 * slashes.
237 */
238 return normalizePath(path.join(...paths), false);
239}
240
241/**
242 * A wrapped version of node.js' {@link path.resolve} which adds our custom

Callers 15

publishBuildMethod · 0.90
initBuildMethod · 0.90
completeBuildMethod · 0.90
generateJsonpDataUrisMethod · 0.90
compareScreenshotFunction · 0.90
path.spec.tsFile · 0.90
taskGenerateFunction · 0.90
getFilepathForFileFunction · 0.90
getAppUrlFunction · 0.90
jest-preset.tsFile · 0.90
runJestScreenshotFunction · 0.90
jest-preset.tsFile · 0.90

Calls 2

normalizePathFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected