You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrates to the lmify package to install plugins at runtime
instead of doing it via vanilla npm which was causing problems
with conflicting dependency versions where the API server would
want semver 7.x and one of the plugins (through some transient
dependency of the plugin itself) would install semver 5.x which
would then cause the API server to break down at runtime due to
the breaking changes between semver 7 and 5.
The magic sauce is the --prefix option of npm which, when specified
instructs npm to ignore the usual parent directory traversal algorithm
when evaluating/resolving dependency trees and instead just do a full
installation to the specified directory path as dictated by the
--prefix option. This means that we can install each plugin in their
own directory the code being isolated from the API server and also
from other plugins that might also interfere.
Fixeshyperledger-cacti#1192
Depends on hyperledger-cacti#1203
Signed-off-by: Peter Somogyvari <[email protected]>
Signed-off-by: hxlaf <[email protected]>
"Can be used to override npm registry and authentication details for example. See https://www.npmjs.com/package/live-plugin-manager#pluginmanagerconstructoroptions-partialpluginmanageroptions for further details.",
95
+
format: "*",
96
+
default: "{}",
97
+
env: "PLUGIN_MANAGER_OPTIONS_JSON",
98
+
arg: "plugin-manager-options-json",
99
+
},
91
100
authorizationProtocol: {
92
101
doc:
93
102
"The name of the authorization protocol to use. Accepted values"+
Copy file name to clipboardExpand all lines: packages/cactus-cmd-api-server/src/test/typescript/unit/config/config-service-example-config-validity.test.ts
0 commit comments