node-pluginsmanager 3.8.2 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,7 +35,6 @@ const gitUpdate_1 = __importDefault(require("./cmd/git/gitUpdate"));
|
|
|
35
35
|
// npm
|
|
36
36
|
const npmInstall_1 = __importDefault(require("./cmd/npm/npmInstall"));
|
|
37
37
|
const npmBuild_1 = __importDefault(require("./cmd/npm/npmBuild"));
|
|
38
|
-
const npmUpdate_1 = __importDefault(require("./cmd/npm/npmUpdate"));
|
|
39
38
|
// consts
|
|
40
39
|
const DEFAULT_PLUGINS_DIRECTORY = (0, node_path_1.join)((0, node_os_1.homedir)(), "node-pluginsmanager-plugins");
|
|
41
40
|
const DEFAULT_RESOURCES_DIRECTORY = (0, node_path_1.join)((0, node_os_1.homedir)(), "node-pluginsmanager-resources");
|
|
@@ -609,7 +608,7 @@ class PluginsManager extends node_events_1.default {
|
|
|
609
608
|
return Promise.resolve().then(() => {
|
|
610
609
|
this._logger?.("debug", "Updating dependencies...", false, pluginName);
|
|
611
610
|
this.emit("updating", pluginName, 5, MAX_UPDATE_STEPS, "Updating dependencies...");
|
|
612
|
-
return !_plugin.dependencies ? Promise.resolve() : (0,
|
|
611
|
+
return !_plugin.dependencies ? Promise.resolve() : (0, npmInstall_1.default)(directory);
|
|
613
612
|
}).then(() => {
|
|
614
613
|
this._logger?.("debug", "Executing plugin update script...", false, pluginName);
|
|
615
614
|
this.emit("updating", pluginName, 6, MAX_UPDATE_STEPS, "Executing plugin update script...");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "node-pluginsmanager",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.3",
|
|
5
5
|
"description": "A plugins manager.",
|
|
6
6
|
|
|
7
7
|
"type": "commonjs",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"mocha": "12.0.3",
|
|
68
68
|
"node-pluginsmanager-plugin": "7.4.5",
|
|
69
69
|
"proxyquire": "2.1.3",
|
|
70
|
-
"rimraf": "6.1.
|
|
70
|
+
"rimraf": "6.1.4",
|
|
71
71
|
"socket.io": "4.8.4",
|
|
72
72
|
"typescript": "6.0.3",
|
|
73
73
|
"used-deps-analyzer": "0.4.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function npmUpdate(directory: string): Promise<void>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// deps
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.default = npmUpdate;
|
|
8
|
-
// locals
|
|
9
|
-
const cmd_1 = __importDefault(require("../cmd"));
|
|
10
|
-
// module
|
|
11
|
-
function npmUpdate(directory) {
|
|
12
|
-
return (0, cmd_1.default)(directory, "npm", [
|
|
13
|
-
"update",
|
|
14
|
-
"--omit=dev",
|
|
15
|
-
"--omit=optional"
|
|
16
|
-
]);
|
|
17
|
-
}
|