aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 09:37:46 +0200
committerChocobozzz <me@florianbigard.com>2021-04-09 09:37:46 +0200
commitbae930372678692f94601d503eaf7deabaa82a3f (patch)
tree58dddd58c1a4fe994a41f858451d972e8cee0897 /server/lib/plugins
parent09d535ef9817a63096dc724cc4d9f0671ee6e5a3 (diff)
downloadPeerTube-bae930372678692f94601d503eaf7deabaa82a3f.tar.gz
PeerTube-bae930372678692f94601d503eaf7deabaa82a3f.tar.zst
PeerTube-bae930372678692f94601d503eaf7deabaa82a3f.zip
Also decache config
Diffstat (limited to 'server/lib/plugins')
-rw-r--r--server/lib/plugins/plugin-manager.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts
index 0086a0e2e..e3226a950 100644
--- a/server/lib/plugins/plugin-manager.ts
+++ b/server/lib/plugins/plugin-manager.ts
@@ -1,3 +1,4 @@
1import decache from 'decache'
1import * as express from 'express' 2import * as express from 'express'
2import { createReadStream, createWriteStream } from 'fs' 3import { createReadStream, createWriteStream } from 'fs'
3import { outputFile, readJSON } from 'fs-extra' 4import { outputFile, readJSON } from 'fs-extra'
@@ -23,8 +24,6 @@ import { ClientHtml } from '../client-html'
23import { RegisterHelpers } from './register-helpers' 24import { RegisterHelpers } from './register-helpers'
24import { installNpmPlugin, installNpmPluginFromDisk, removeNpmPlugin } from './yarn' 25import { installNpmPlugin, installNpmPluginFromDisk, removeNpmPlugin } from './yarn'
25 26
26const decache = require('decache')
27
28export interface RegisteredPlugin { 27export interface RegisteredPlugin {
29 npmName: string 28 npmName: string
30 name: string 29 name: string