liferay-npm-bundler-plugin-exclude-imports
Advanced tools
Comparing version 2.6.2 to 2.6.3-alpha.126
@@ -1,26 +0,20 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (_ref, _ref2) { | ||
var pkg = _ref.pkg, | ||
globalConfig = _ref.globalConfig, | ||
config = _ref.config, | ||
log = _ref.log; | ||
var files = _ref2.files; | ||
var imports = config.imports || globalConfig.imports || {}; | ||
imports = (0, _imports.unrollImportsConfig)(imports); | ||
if (imports[pkg.name]) { | ||
files.length = 0; | ||
log.info('exclude-imports', 'Excluding package', pkg.id, 'from output as it is configured as an import.'); | ||
} | ||
}; | ||
var _imports = require('liferay-npm-build-tools-common/lib/imports'); | ||
//# sourceMappingURL=index.js.map | ||
"use strict"; | ||
/** | ||
* © 2017 Liferay, Inc. <https://liferay.com> | ||
* | ||
* SPDX-License-Identifier: LGPL-3.0-or-later | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const imports_1 = require("liferay-npm-build-tools-common/lib/imports"); | ||
/** | ||
* @return {void} | ||
*/ | ||
function default_1({ config, globalConfig, log, pkg }, { files }) { | ||
let imports = config.imports || globalConfig.imports || {}; | ||
imports = imports_1.unrollImportsConfig(imports); | ||
if (imports[pkg.name]) { | ||
files.length = 0; | ||
log.info('exclude-imports', 'Excluding package', pkg.id, 'from output as it is configured as an import.'); | ||
} | ||
} | ||
exports.default = default_1; |
{ | ||
"name": "liferay-npm-bundler-plugin-exclude-imports", | ||
"version": "2.6.2", | ||
"version": "2.6.3-alpha.126+f9a8cd2", | ||
"description": "A liferay-npm-bundler plugin to exclude imported dependencies.", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel --source-maps -D -d lib src", | ||
"prepublish": "npm run build" | ||
"copyfiles": "node ../../scripts/copyfiles.js", | ||
"build": "tsc && yarn copyfiles", | ||
"prepublish": "yarn build" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.24.1", | ||
"babel-preset-env": "^1.6.1" | ||
"dependencies": { | ||
"liferay-npm-build-tools-common": "2.6.3-alpha.126+f9a8cd2" | ||
}, | ||
"dependencies": { | ||
"liferay-npm-build-tools-common": "2.6.2" | ||
} | ||
"gitHead": "f9a8cd23c70ecc6fff238bea906286c1c6cb2ecc" | ||
} |
@@ -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'; | ||
@@ -2,0 +8,0 @@ import plugin from '../index'; |
@@ -0,1 +1,7 @@ | ||
/** | ||
* © 2017 Liferay, Inc. <https://liferay.com> | ||
* | ||
* SPDX-License-Identifier: LGPL-3.0-or-later | ||
*/ | ||
import {unrollImportsConfig} from 'liferay-npm-build-tools-common/lib/imports'; | ||
@@ -6,3 +12,3 @@ | ||
*/ | ||
export default function({pkg, globalConfig, config, log}, {files}) { | ||
export default function({config, globalConfig, log, pkg}, {files}) { | ||
let imports = config.imports || globalConfig.imports || {}; | ||
@@ -9,0 +15,0 @@ |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
10720
0
7
2
70
106
2
1
- Removedliferay-npm-build-tools-common@2.6.2(transitive)
- Removedread-json-sync@2.0.1(transitive)
Updatedliferay-npm-build-tools-common@2.6.3-alpha.126+f9a8cd2