fix(compile): implicit read permission to npm vfs (#19281)

Closes #19280
This commit is contained in:
David Sherret 2023-05-26 13:33:38 -04:00 committed by GitHub
parent a11681a9b0
commit d0c5ff42f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 87 additions and 11 deletions

View file

@ -0,0 +1,8 @@
__________________
< Hello from Deno! >
------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

View file

@ -0,0 +1,3 @@
// this will read a file from the package
import { say } from "npm:cowsay@1.5.0";
console.log(say({ text: "Hello from Deno!" }));

View file

@ -0,0 +1,2 @@
error: Uncaught PermissionDenied: Requires read access to <CWD>, run again with the --allow-read flag
[WILDCARD]