Move node_modules/_app/ into lib/ as a package (#190)

Move the contents of node_modules/_app into lib/ as there shouldn't be
any content in node_modules.  This directory is automatically managed
and pruned by npm.

Add lib/ as a local package in package.json, this allows scripts
everywhere to require it's content as "lib/path" instead of relying on
local paths.  This shadows the StdLib Node.js Bindings package, but I
could care less.

Change all requires with lib as a local path and _app to use just lib.
This commit is contained in:
Hornwitser authored and Daniel committed 2019-08-04 15:52:36 +02:00
1 parent a13d4c6805
commit f76c84c3f1
32 files changed
+43 -38

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ const needle = require("needle");
const fs = require("fs-extra");
const path = require("path");
const clusterTools = require("_app/clusterTools")();
const clusterTools = require("lib/clusterTools")();
const pluginConfig = require("./config");
module.exports = class remoteCommands {
@@ -3,7 +3,7 @@ const path = require("path");
class masterPlugin {
constructor({config, socketio, express, Prometheus}){
const authenticate = require("./../../lib/authenticate")(config);
const authenticate = require("lib/authenticate")(config);
this.config = config;
this.io = socketio;