"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const normalize = require("normalize-path");
const path = require("path");
function pkgIdToFilename(pkgId) {
    if (pkgId.indexOf('file:') !== 0)
        return pkgId;
    return `local/${encodeURIComponent(normalize(path.resolve(pkgId.slice(5))))}`;
}
exports.default = pkgIdToFilename;
//# sourceMappingURL=pkgIdToFilename.js.map