UNPKG

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