diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-03 15:08:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-03 15:08:36 +0200 |
commit | c795e19663a93c24908a7318975f820bac63164f (patch) | |
tree | 149a303be38eedf5aa5a0ec02938f67c75a267fe /server/lib/plugins/yarn.ts | |
parent | fd59208e8ccd796f9ad7e35db82d0c33acfcb92c (diff) | |
download | PeerTube-c795e19663a93c24908a7318975f820bac63164f.tar.gz PeerTube-c795e19663a93c24908a7318975f820bac63164f.tar.zst PeerTube-c795e19663a93c24908a7318975f820bac63164f.zip |
Automatically rebuild native modules on ABI change
Diffstat (limited to 'server/lib/plugins/yarn.ts')
-rw-r--r-- | server/lib/plugins/yarn.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/plugins/yarn.ts b/server/lib/plugins/yarn.ts index 3f45681d3..d105b95e0 100644 --- a/server/lib/plugins/yarn.ts +++ b/server/lib/plugins/yarn.ts | |||
@@ -31,11 +31,16 @@ async function removeNpmPlugin (name: string) { | |||
31 | await execYarn('remove ' + name) | 31 | await execYarn('remove ' + name) |
32 | } | 32 | } |
33 | 33 | ||
34 | async function rebuildNativePlugins () { | ||
35 | await execYarn('install --pure-lockfile') | ||
36 | } | ||
37 | |||
34 | // ############################################################################ | 38 | // ############################################################################ |
35 | 39 | ||
36 | export { | 40 | export { |
37 | installNpmPlugin, | 41 | installNpmPlugin, |
38 | installNpmPluginFromDisk, | 42 | installNpmPluginFromDisk, |
43 | rebuildNativePlugins, | ||
39 | removeNpmPlugin | 44 | removeNpmPlugin |
40 | } | 45 | } |
41 | 46 | ||