Pedro
How do I install NPM packages as *development dependencies* in Deno? Is that even possible?
I might have figured it out, but I am not sure.
I found in the docs that there are the
--dev
and -D
options, but I don't know if I used it correctly. I used the following command:
deno add -D npm:drizzle-kit
and it did install the package, however, in deno.json
, the package is shown under imports
along with all other installed packages... so my question is, how do I know whether it was installed as a dev dependency?
Here are the sections of the documentation page I consulted:
- https://docs.deno.com/runtime/reference/cli/install/#options-dev
- https://docs.deno.com/runtime/reference/cli/install/#examples4 replies