Open davidmytton opened 3 weeks ago
I don't believe I've ever seen a project specify typescript as a peerDependency so I don't think we should.
Additionally, peerDependencies wouldn't solve the issue here because the newer TypeScript would be installed in node_modules/@arcjet/next/node_modules/typescript
and they would still be compiling with typescript 4.9.5 which they installed at the top level.
I had a user report a compile error which turned out to be because they were using TypeScript 4.9.5. Updating to the latest version (5.5.2) solved this. Should we add TypeScript >= to peerDependencies?