MCPcopy
hub / github.com/callstack/react-native-paper / relative

Function relative

scripts/generate-mappings.js:22–23  ·  view source on GitHub ↗
(value /* : string */)

Source from the content-addressed store, hash-verified

20
21const index = packageJson.module;
22const relative = (value /* : string */) =>
23 path.relative(root, path.resolve(path.dirname(index), value));
24
25const mappings = ast.program.body.reduce((acc, declaration, index, self) => {
26 if (types.isExportNamedDeclaration(declaration)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…