A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jackfranklin/gulp-load-plugins/issues/35 below:

Load from submodule gets wrong package.json · Issue #35 · jackfranklin/gulp-load-plugins · GitHub

I wrote a module (gulp task) which uses gulp-load-plugins().

When this module is installed and used by the "Main app", findup looks for package.json in cwd, that is the main app's working directory, and it tries to load plugins for the main app instead.

Takes more time and actually main app has another set of plugins, so that's just wrong.

Solved it like this:

const gp = require('gulp-load-plugins')({
  config: path.join(__dirname, 'package.json')
});

I wonder if there's a better way of searching package.json?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4