UNPKG

@ethan-jones-vizio/sveld

Version:

Generate TypeScript definitions for your Svelte components.

14 lines (13 loc) 422 B
"use strict"; exports.__esModule = true; exports.normalizeSeparators = void 0; var path_1 = require("path"); /** * Normalize directory separators to always use `/`. * @param filePath A file path. * @returns Path with normalized separators. */ function normalizeSeparators(filePath) { return path_1.sep === "/" ? filePath : filePath.split(path_1.sep).join("/"); } exports.normalizeSeparators = normalizeSeparators;