liferay-npm-bundler-plugin-inject-imports-dependencies
Advanced tools
Comparing version 2.6.2 to 2.7.0
@@ -13,2 +13,8 @@ 'use strict'; | ||
/** | ||
* © 2017 Liferay, Inc. <https://liferay.com> | ||
* | ||
* SPDX-License-Identifier: LGPL-3.0-or-later | ||
*/ | ||
it('injects imports', function () { | ||
@@ -32,3 +38,3 @@ var pkgJson = { | ||
imports: { | ||
'provider': { | ||
provider: { | ||
'pkg-a': '^1.0.0', | ||
@@ -92,3 +98,3 @@ 'pkg-b': '^2.0.0' | ||
imports: { | ||
'provider': { | ||
provider: { | ||
'pkg-a': '^1.0.0', | ||
@@ -95,0 +101,0 @@ 'pkg-b': '^3.0.0' |
@@ -8,6 +8,6 @@ 'use strict'; | ||
exports.default = function (_ref, _ref2) { | ||
var rootPkgJson = _ref.rootPkgJson, | ||
var config = _ref.config, | ||
globalConfig = _ref.globalConfig, | ||
config = _ref.config, | ||
log = _ref.log; | ||
log = _ref.log, | ||
rootPkgJson = _ref.rootPkgJson; | ||
var pkgJson = _ref2.pkgJson; | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "liferay-npm-bundler-plugin-inject-imports-dependencies", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"description": "A liferay-npm-bundler plugin to force injection of declared imports as dependencies.", | ||
@@ -15,4 +15,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"liferay-npm-build-tools-common": "2.6.2" | ||
"liferay-npm-build-tools-common": "2.7.0" | ||
} | ||
} |
@@ -0,1 +1,7 @@ | ||
/** | ||
* © 2017 Liferay, Inc. <https://liferay.com> | ||
* | ||
* SPDX-License-Identifier: LGPL-3.0-or-later | ||
*/ | ||
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger'; | ||
@@ -23,3 +29,3 @@ import plugin from '../index'; | ||
imports: { | ||
'provider': { | ||
provider: { | ||
'pkg-a': '^1.0.0', | ||
@@ -89,3 +95,3 @@ 'pkg-b': '^2.0.0', | ||
imports: { | ||
'provider': { | ||
provider: { | ||
'pkg-a': '^1.0.0', | ||
@@ -92,0 +98,0 @@ 'pkg-b': '^3.0.0', |
@@ -0,1 +1,7 @@ | ||
/** | ||
* © 2017 Liferay, Inc. <https://liferay.com> | ||
* | ||
* SPDX-License-Identifier: LGPL-3.0-or-later | ||
*/ | ||
import * as ns from 'liferay-npm-build-tools-common/lib/namespace'; | ||
@@ -7,6 +13,3 @@ import {normalizeImportsConfig} from 'liferay-npm-build-tools-common/lib/imports'; | ||
*/ | ||
export default function( | ||
{rootPkgJson, globalConfig, config, log}, | ||
{pkgJson} | ||
) { | ||
export default function({config, globalConfig, log, rootPkgJson}, {pkgJson}) { | ||
let imports = config.imports || globalConfig.imports || {}; | ||
@@ -13,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
16988
271
2
70
+ Addedliferay-npm-build-tools-common@2.7.0(transitive)
- Removedliferay-npm-build-tools-common@2.6.2(transitive)