plugins: Use npm ls to list the installed plugins

This speeds up startup considerably, and we get rid of a lot of buggy
code.

This works with both npm v6.x and v7.x.
This commit is contained in:
Richard Hansen 2021-02-08 19:19:49 -05:00 committed by John McLear
parent ce1b69feda
commit fc9f236977
4 changed files with 27 additions and 355 deletions

View file

@ -21,6 +21,8 @@ exports.parts = [];
// * parts: Each part from the ep.json object is augmented with the following properties:
// - plugin: The name of the plugin.
// - full_name: Equal to <plugin>/<name>.
// * package (server-side only): Object containing details about the plugin package (version,
// path).
// * package (server-side only): Object containing details about the plugin package:
// - version
// - path
// - realPath
exports.plugins = {};