Bustin Base
Bustin Base2y ago

Is there a way to vendor npm specifier imports?

deno vendor npm:express Vendored 0 modules into scripts/vendor directory
4 Replies
ioB
ioB2y ago
Not yet iirc. Have you tried esm.sh?
Bustin Base
Bustin BaseOP2y ago
I did but the types are all any and while my company firewall doesn't yet block esm.sh they probably will when they find out I can bypass artifactory using it I'll probably try again though, I was just hoping the npm specifiers would be a better experience.
ioB
ioB2y ago
npm specifiers aren't fully integrated with everything just yet /shrug
Bustin Base
Bustin BaseOP2y ago
Yeah if I just run NPM_CONFIG_REGISTRY=$URL deno cache ... then it will work and cache but for some reason vscode extension cannot find that module in the cache and there seems to not be a way to specify the env var for vscode's sake.

Did you find this page helpful?