Closed thedanchez closed 5 months ago
I went and got ahead of myself in excitement and put up this PR: https://github.com/fireproof-storage/fireproof/pull/58
Can always close it if we feel it's not needed in the end.
wow yes! this is exactly what we need. I will look at the code now
merged in #58
this uncovers more work to be done, getting the examples directory clean, and fixing the react build https://github.com/fireproof-storage/fireproof/issues/59
This is a quality of maintainer/contributor life issue post 😄
I noticed that we're not making any use of recursive commands
pnpm -r
in the root-levelpackage.json
.Unless there's some reason why we're not (could use background context here), I think we should incorporate that and update all the local
packages/*
andexamples/*
to install their dependencies usingworkspace:*
orworkspace:^
so that at the very least, the recursiveinstall
,build
andtest
scripts can run successfully and consistently in the correct dependency order.Another thing I'd like to suggest is introducing a
.nvmrc
file to the project to manage the required Node version (via runningnvm use
at the top-level). As it stands, Node 16 has reached end of life so we should be target either the latest LTS for Node 18 or 20 -- I'd personally suggest targeting Node v20.10.0.Best part about this is, staring from Node 18+,
fetch
is now built into the runtime so we should be able do away withcross-fetch
which I saw that@fireproof/connect
was using.Would love to get thoughts from everyone on this. Feel free to poke holes and raise things I may be missing here.