Github user audreyso commented on a diff in the pull request:
https://github.com/apache/cordova-lib/pull/602#discussion_r147012615
--- Diff: src/cordova/util.js ---
@@ -255,11 +255,20 @@ function findPlugins (pluginDir) {
var plugins = [];
if (fs.existsSync(pluginDir)) {
- plugins = fs.readdirSync(pluginDir).filter(function (fileName) {
- var pluginPath = path.join(pluginDir, fileName);
- var isPlugin = isDirectory(pluginPath) ||
isSymbolicLink(pluginPath);
- return fileName !== '.svn' && fileName !== 'CVS' && isPlugin;
- });
+ plugins = fs.readdirSync(pluginDir)
+ .reduce(function (plugins, pluginOrScope) {
+ if (pluginOrScope[0] === '@') {
+ plugins.push(...fs.readdirSync(path.join(pluginDir,
pluginOrScope)).map(s => path.join(pluginOrScope, s)));
--- End diff --
Hi! This line will need to be changed as it will not work with Node 4,
which is still currently supported.
http://node.green/#ES2015-syntax-spread-------operator-with-generic-iterables--in-calls
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]