Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
terminal-cv/node_modules/@parcel/utils/src/relativeBundlePath.js

16 lines
492 B

// @flow strict-local
import type {FilePath, NamedBundle} from '@parcel/types';
import path from 'path';
import {relativePath} from './path';
export function relativeBundlePath(
from: NamedBundle,
to: NamedBundle,
opts: {|leadingDotSlash: boolean|} = {leadingDotSlash: true},
): FilePath {
let fromPath = path.join(from.target.distDir, from.name);
let toPath = path.join(to.target.distDir, to.name);
return relativePath(path.dirname(fromPath), toPath, opts.leadingDotSlash);
}