@shopify/cli
Version:
A CLI tool to build for the Shopify platform
12 lines (10 loc) • 666 B
JavaScript
import{c as g,g as s}from"./chunk-VPRTJUIN.js";var t=g((u,o)=>{s();o.exports=function(e,l){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var i=e.length;if(i<=1)return e;var n="";if(i>4&&e[3]==="\\"){var f=e[2];(f==="?"||f===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var r=e.split(/[/\\]+/);return l!==!1&&r[r.length-1]===""&&r.pop(),n+r.join("/")}});export{t as a};
/*! 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.
*)
*/