projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Litte SQL optimzation in videos list
[oweals/peertube.git]
/
server
/
lib
/
plugins
/
yarn.ts
diff --git
a/server/lib/plugins/yarn.ts
b/server/lib/plugins/yarn.ts
index 74c67653c88e90f2f6aa8b88a4385a7dd318912f..e40351b6e3751cb20c40d086cd798ee1c098111a 100644
(file)
--- a/
server/lib/plugins/yarn.ts
+++ b/
server/lib/plugins/yarn.ts
@@
-13,7
+13,9
@@
async function installNpmPlugin (npmName: string, version?: string) {
let toInstall = npmName
if (version) toInstall += `@${version}`
let toInstall = npmName
if (version) toInstall += `@${version}`
- await execYarn('add ' + toInstall)
+ const { stdout } = await execYarn('add ' + toInstall)
+
+ logger.debug('Added a yarn package.', { yarnStdout: stdout })
}
async function installNpmPluginFromDisk (path: string) {
}
async function installNpmPluginFromDisk (path: string) {
@@
-46,7
+48,7
@@
async function execYarn (command: string) {
await outputJSON(pluginPackageJSON, {})
}
await outputJSON(pluginPackageJSON, {})
}
-
await
execShell(`yarn ${command}`, { cwd: pluginDirectory })
+
return
execShell(`yarn ${command}`, { cwd: pluginDirectory })
} catch (result) {
logger.error('Cannot exec yarn.', { command, err: result.err, stderr: result.stderr })
} catch (result) {
logger.error('Cannot exec yarn.', { command, err: result.err, stderr: result.stderr })