Closed mixmix closed 2 weeks ago
@frankiebee here's the minimal start to our TS work
I tried testing the export by linking with CLI but I'm not confident yarn is linking ... EOD :skull:
Ok tests passing, but here's the thing we need to watch: I only defined exports for import
and require
I did not define a default
- this is needed for when import nor require is used / it's an environment where those don't make sense? I removed that cos it was breaking require/import tests. I think this is fine... I guess we'll see later?
type: module
just signals what module system this packages is running (ESM/ CJS), I don't think it's about "is this an application" etc. I'm in favour of leaning towards type: module
as our default because ESM will slowly win, and it's better for bundling etc (tree shaking easier with esm?)
This PR: