UNPKG

@wix/cli

Version:

CLI tool for building Wix sites and applications

50 lines (47 loc) 1.39 kB
import { createRequire as _createRequire } from 'node:module'; const require = _createRequire(import.meta.url); import { __commonJS, init_esm_shims } from "./chunk-4EFJZ3GQ.js"; // ../../node_modules/normalize-path/index.js var require_normalize_path = __commonJS({ "../../node_modules/normalize-path/index.js"(exports, module) { "use strict"; init_esm_shims(); module.exports = function(path, stripTrailing) { if (typeof path !== "string") { throw new TypeError("expected path to be a string"); } if (path === "\\" || path === "/") return "/"; var len = path.length; if (len <= 1) return path; var prefix = ""; if (len > 4 && path[3] === "\\") { var ch = path[2]; if ((ch === "?" || ch === ".") && path.slice(0, 2) === "\\\\") { path = path.slice(2); prefix = "//"; } } var segs = path.split(/[/\\]+/); if (stripTrailing !== false && segs[segs.length - 1] === "") { segs.pop(); } return prefix + segs.join("/"); }; } }); export { require_normalize_path }; /*! Bundled license information: normalize-path/index.js: (*! * normalize-path <https://github.com/jonschlinkert/normalize-path> * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. *) */ //# sourceMappingURL=chunk-V23RKBE2.js.map