JezK
Edit File: package-name-utils.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPlatformSpecificPackageFilename = getPlatformSpecificPackageFilename; exports.getSystemParams = getSystemParams; function getPlatformSpecificPackageFilename(pkg) { // TODO support hash for all subdependencies that have installs scripts var normalizeScope = function normalizeScope(name) { return name[0] === '@' ? name.substr(1).replace('/', '-') : name; }; var suffix = getSystemParams(); return "".concat(normalizeScope(pkg.name), "-v").concat(pkg.version, "-").concat(suffix); } function getSystemParams() { // TODO support platform variant for linux return "".concat(process.platform, "-").concat(process.arch, "-").concat(process.versions.modules || ''); } //# sourceMappingURL=package-name-utils.js.map