UNPKG

@kiwicom/orbit-tracking

Version:

Tracking for orbit design system

16 lines (14 loc) 353 B
// src/helpers/path.ts import { path } from "zx"; import filedirname from "filedirname"; var [__filename, __dirname] = filedirname(); var getOutputPath = (p, name) => { if (p) return path.resolve(p, `tracking-${name}.json`); return path.resolve(process.cwd(), `tracking-${name}.json`); }; export { __filename, __dirname, getOutputPath };