From dfd26e9b6b24bea4cfbe54cbb5fdddba26ebc227 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 19 Nov 2023 16:12:18 +0100 Subject: [PATCH] Improving extension #753 --- src/backend/model/extension/ExtensionManager.ts | 4 ++-- src/backend/model/extension/IExtension.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/model/extension/ExtensionManager.ts b/src/backend/model/extension/ExtensionManager.ts index 2fd4b36e5..f02dfb28c 100644 --- a/src/backend/model/extension/ExtensionManager.ts +++ b/src/backend/model/extension/ExtensionManager.ts @@ -107,8 +107,8 @@ export class ExtensionManager implements IObjectManager { } if (fs.existsSync(packageJsonPath)) { - Logger.silly(LOG_TAG, `Running: "npm install --omit=dev" in ${extPath}`); - await exec('npm install --omit=dev', { + Logger.silly(LOG_TAG, `Running: "npm install --prefer-offline --no-audit --progress=false --omit=dev" in ${extPath}`); + await exec('npm install --no-audit --progress=false --omit=dev', { cwd: extPath }); // eslint-disable-next-line @typescript-eslint/no-var-requires diff --git a/src/backend/model/extension/IExtension.ts b/src/backend/model/extension/IExtension.ts index 3ce85fcee..cd59cf0e6 100644 --- a/src/backend/model/extension/IExtension.ts +++ b/src/backend/model/extension/IExtension.ts @@ -132,7 +132,7 @@ export interface IExtensionMessengers { }): void; } -export interface IExtensionObject { +export interface IExtensionObject { /** * ID of the extension that is internally used. By default, the name and ID matches if there is no collision. */