Bustin Base
Bustin Base16mo ago

Is there a way to vendor npm specifier imports?

deno vendor npm:express Vendored 0 modules into scripts/vendor directory
4 Replies
ioB
ioB16mo ago
Not yet iirc. Have you tried esm.sh?
Bustin Base
Bustin Base16mo 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
ioB16mo ago
npm specifiers aren't fully integrated with everything just yet /shrug
Bustin Base
Bustin Base16mo 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.