denoland / deno_emit

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
https://jsr.io/@deno/emit
MIT License
216 stars 23 forks source link

deno deploy usage #77

Open mfulton26 opened 1 year ago

mfulton26 commented 1 year ago

When trying to use in Deno Deploy I get the following:

Error: Could not set the Deno root directory

Do I need to specify a cacheRoot myself and have the caches loaded in my git repository or is there a better way to do this?

NuroDev commented 1 year ago

I tried this out myself & was able to get this working by setting the cacheRoot to Deno.cwd(), which is the recommended way by the file system API docs to get a file system path.

Playground