OpenFn / core

The central job processing module used in OpenFn v1.
https://www.openfn.org/
GNU General Public License v3.0
18 stars 8 forks source link

Resolve package.json from modules using resolve paths #40

Closed stuartc closed 2 years ago

stuartc commented 2 years ago

Some (if not all) adaptors at present that have been migrated to ESM modules don't currently export their package.json files.

While we add that to the packages, to maintain compatibility the getModuleDetails function has been changed to not use require.resolve.

josephjclark commented 2 years ago

Yeah this is fine - hadn't realised it hadn't been merged yet!

Just to note that adaptors has been fixed to deal with this and will export it's package json now. Here's the unit test on main to prove it.

They should be released tomorrow.