The downloaded dependencies contain quite a lot of polyfills and unnecessary dependencies.
For example fs.realpath required only for Node.js@<6
Maybe we can optimize it?
@kravetsone I'll be closing this issue to migrating everything from this repo onto the main one. Feel free to repost what you posted here onto the issue you made on the main repo.
The downloaded dependencies contain quite a lot of polyfills and unnecessary dependencies. For example fs.realpath required only for Node.js@<6 Maybe we can optimize it?
instead of
glob
i recommendfdir
(dotenvx replace glob to it too - https://github.com/dotenvx/dotenvx/pull/278/)json-diff@0.9.0 - many dependencies were removed in the latest version, but the library contains a bunch of useless files
zod - really slow validator (runtime-type-benchmarks or typescript-runtime-type-benchmarks) and not tree-shakable (comparison with valibot)
@hono/zod-validator - @hono/valibot-validator
node-fetch - with native node.js fetch (released at Node.js@18.0.0 - 2022-04-19)
and about database drivers, maybe there is a way to reuse what the user downloaded?
https://npmgraph.js.org/?q=drizzle-kit#zoom=h&deps=devDependencies
for now unpacked size is too much - 8.41 MB
By reducing dependencies and their weight, we will put ourselves on the path to the future of JS, as well as increase the performance of the CLI
e18e