DenoDDeno
Powered by
wcyganW
Denoβ€’14mo agoβ€’
3 replies
wcygan

Using buf.build SDKs with Deno (and Deno Fresh)

Hi there! I'd like to use buf SDKs in my Deno Fresh project, they are located here: https://buf.build/wcygan/flock/sdks

The typical way to accomplish this is like so:

npm config set @buf:registry https://buf.build/gen/npm/v1/
npm install @buf/wcygan_flock.bufbuild_es@latest
npm config set @buf:registry https://buf.build/gen/npm/v1/
npm install @buf/wcygan_flock.bufbuild_es@latest


But I'm unable to replicate this using Deno

.npmrc:

@buf:registry=https://buf.build/gen/npm/v1/ 
@buf:registry=https://buf.build/gen/npm/v1/ 


Then,

deno add npm:@buf/wcygan_flock.bufbuild_es@latest
error: npm:@buf/wcygan_flock.bufbuild_es was not found.
deno add npm:@buf/wcygan_flock.bufbuild_es@latest
error: npm:@buf/wcygan_flock.bufbuild_es was not found.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Routes with Deno and Fresh
BhauminBBhaumin / help
2y ago
Deno fresh
TheYuriGTTheYuriG / help
3y ago
Handle routes for multiple domains using Fresh and Deno
BhauminBBhaumin / help
2y ago