liferay-npm-build-tools-common
Advanced tools
Comparing version 2.5.0-alpha.05bef2c1 to 2.5.0-alpha.eefe28fb
@@ -20,3 +20,4 @@ 'use strict'; | ||
'depB': { | ||
'/': '4.0.0' | ||
'/': '4.0.0', | ||
'depC': '5.0.0' | ||
} | ||
@@ -42,3 +43,4 @@ }); | ||
'depB': { | ||
'/': '4.0.0' | ||
'/': '4.0.0', | ||
'depC': '5.0.0' | ||
} | ||
@@ -45,0 +47,0 @@ }, true); |
@@ -23,10 +23,11 @@ 'use strict'; | ||
var version = importsConfig[namespace][pkgName]; | ||
var normalizedSpace = namespace; | ||
if (pkgName === '/') { | ||
pkgName = namespace; | ||
namespace = ''; | ||
normalizedSpace = ''; | ||
} | ||
normalized[namespace] = normalized[namespace] || {}; | ||
normalized[namespace][pkgName] = version; | ||
normalized[normalizedSpace] = normalized[normalizedSpace] || {}; | ||
normalized[normalizedSpace][pkgName] = version; | ||
}); | ||
@@ -33,0 +34,0 @@ }); |
{ | ||
"name": "liferay-npm-build-tools-common", | ||
"version": "2.5.0-alpha.05bef2c1", | ||
"version": "2.5.0-alpha.eefe28fb", | ||
"description": "Utility library for Liferay NPM Build Tools.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -19,2 +19,3 @@ import {normalizeImportsConfig, unrollImportsConfig} from '../imports'; | ||
'/': '4.0.0', | ||
'depC': '5.0.0', | ||
}, | ||
@@ -42,2 +43,3 @@ }); | ||
'/': '4.0.0', | ||
'depC': '5.0.0', | ||
}, | ||
@@ -44,0 +46,0 @@ }, |
@@ -14,10 +14,11 @@ /** | ||
const version = importsConfig[namespace][pkgName]; | ||
let normalizedSpace = namespace; | ||
if (pkgName === '/') { | ||
pkgName = namespace; | ||
namespace = ''; | ||
normalizedSpace = ''; | ||
} | ||
normalized[namespace] = normalized[namespace] || {}; | ||
normalized[namespace][pkgName] = version; | ||
normalized[normalizedSpace] = normalized[normalizedSpace] || {}; | ||
normalized[normalizedSpace][pkgName] = version; | ||
}); | ||
@@ -24,0 +25,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
151375
2353