1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const path = require("path");
|
4 | const unadjustedRelativePath = (from, to) => path.relative(path.dirname(from), path.join(path.dirname(to), path.basename(to, '.ts')));
|
5 | const adjustedRelativePath = (path) => (path.startsWith('.') ? path : `./${path}`);
|
6 | exports.relativePath = (from, to) => adjustedRelativePath(unadjustedRelativePath(from, to));
|
7 | exports.outputPath = (fragmentOrOperationName, filePath) => path.join(path.join(path.dirname(filePath), '__generated__'), fragmentOrOperationName + '.ts');
|
8 |
|
\ | No newline at end of file |