UNPKG

793 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var forOf = require("object-forof");
4function parseDependencies(dependencies, nodeDependencies) {
5 if (nodeDependencies) {
6 forOf(function (type, dependency, value) {
7 if (type === 'npm') {
8 if (value !== 'builtin') {
9 if (!dependencies.npm) {
10 dependencies.npm = {};
11 }
12 dependencies.npm[dependency] = value;
13 }
14 }
15 else {
16 console.warn("Unsupported package manager: " + type);
17 }
18 }, nodeDependencies);
19 }
20 return dependencies;
21}
22exports.parseDependencies = parseDependencies;
23//# sourceMappingURL=parseDependencies.js.map
\No newline at end of file