mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Improving extension #753
This commit is contained in:
parent
ebb9886d4b
commit
dfd26e9b6b
@ -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
|
||||
|
@ -132,7 +132,7 @@ export interface IExtensionMessengers {
|
||||
}): void;
|
||||
}
|
||||
|
||||
export interface IExtensionObject<C> {
|
||||
export interface IExtensionObject<C = void> {
|
||||
/**
|
||||
* ID of the extension that is internally used. By default, the name and ID matches if there is no collision.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user