perf: remove find-up dependency, upgrade file-type dependency (#8195)
Fixes https://github.com/payloadcms/payload/issues/8111 and https://github.com/payloadcms/payload/issues/8113 Before: 132 dependencies After: 123 dependencies This PR also contains a small performance optimization during telemetry startup: By using the async `fs.promises.readFile` instead of `readFileSync` we're not blocking the entire thread anymore and are allowing other stuff to happen while the file is being read. Also, in our dependency checker, this moves some variables out of loops, to the module scope, as they only need to be calculated once. We have to pin file-type to 19.3.0 and cannot upgrade it further (latest is 19.5.0). See reasoning in https://github.com/payloadcms/payload/issues/8111#issuecomment-2348119533
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
"drizzle-kit": "0.23.2-df9e596",
|
||||
"eslint-plugin-playwright": "1.6.2",
|
||||
"execa": "5.1.1",
|
||||
"file-type": "17.1.6",
|
||||
"file-type": "19.3.0",
|
||||
"http-status": "1.6.2",
|
||||
"jwt-decode": "4.0.0",
|
||||
"lexical": "0.17.0",
|
||||
|
||||
Reference in New Issue
Block a user