Clean up packages and types
Summary:
This diff removes most deps from the root package.json, which now only contains electron and shared build / test infra structure: lint, prettier, jest, typescript.
This makes it possible to control much better which packages are used where, as all sub packages now have their deps explicitly in their package.json instead of incidentally shared. This allows for example to disable DOM types for all packages by default (flipper-plugin, ui(-core) and app still request it), and in the next diff I hope to add to this that nodeJS types are no longer shared either, so that UI oriented packages will generate compile errors when using Node built-ins
This diff removes most deps that were currently unused, and dedupes a bunch of other ones, so the build should probably be a bit smaller now as well:
{F686704253}
{F686704295}
Reviewed By: antonk52
Differential Revision: D33062859
fbshipit-source-id: 5afaa4f2103d055188382a3370c1fffa295a298a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
78413c1ecf
commit
dcfeb4a4d5
@@ -45,14 +45,12 @@ const getTempDirName = promisify(tmp.dir) as (
|
||||
export class PluginManager {
|
||||
async start() {
|
||||
// This needn't happen immediately and is (light) I/O work.
|
||||
(typeof window !== 'undefined'
|
||||
? window?.requestIdleCallback
|
||||
: setImmediate)(() => {
|
||||
setTimeout(() => {
|
||||
cleanupOldInstalledPluginVersions(maxInstalledPluginVersionsToKeep).catch(
|
||||
(err) =>
|
||||
console.error('Failed to clean up old installed plugins:', err),
|
||||
);
|
||||
});
|
||||
}, 100);
|
||||
}
|
||||
|
||||
loadDynamicPlugins = loadDynamicPlugins;
|
||||
|
||||
Reference in New Issue
Block a user