Closed benmccann closed 1 month ago
I'll upgrade this to file-type 19.3.0. Cannot upgrade to the latest (file-type 19.4.0 and higher) because of the following:
moduleResolution: Bundler
or jest (jests esm support sucks, it's probably falling into the same trap. But it's our current test runner).
They're trying to get typescript to fix it and will keep the package nonfunctional for these configurations until that happens: https://github.com/sindresorhus/file-type/issues/652.
I respect that, but I'd also like to stay as far away from this as possible until it's resolvedDamn I wish there was a way to add comments to package.json's to document these decisions
that's awesome!! thank you!
Damn I wish there was a way to add comments to package.json's to document these decisions
there is, but it's really hacky...
"comment": "we use version 19.3 of file-type because..."
Fixed by https://github.com/payloadcms/payload/pull/8195
there is, but it's really hacky...
"comment": "we use version 19.3 of file-type because..."
Yeea that might be a bit too hacky - I'm hoping for jsonc support or something like that to be added in the future!
🚀 This is included in version v3.0.0-beta.107
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
https://github.com/payloadcms/payload/blob/08fdbcacc02c1768770516c2dd2e22df7bc48843/packages/payload/package.json#L97
Environment Info
Describe the Bug
payload 3 currently uses file-type 17 while the latest is file-type 19. The newer version is smaller and would remove a couple of transitive dependencies
Reproduction Steps
See https://github.com/payloadcms/payload/blob/08fdbcacc02c1768770516c2dd2e22df7bc48843/packages/payload/package.json#L97
Adapters and Plugins
No response