mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(compile): implicit read permission to npm vfs (#19281)
Closes #19280
This commit is contained in:
parent
a11681a9b0
commit
d0c5ff42f4
6 changed files with 87 additions and 11 deletions
8
cli/tests/testdata/compile/vfs_implicit_read_permission/main.out
vendored
Normal file
8
cli/tests/testdata/compile/vfs_implicit_read_permission/main.out
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
__________________
|
||||
< Hello from Deno! >
|
||||
------------------
|
||||
\ ^__^
|
||||
\ (oo)\_______
|
||||
(__)\ )\/\
|
||||
||----w |
|
||||
|| ||
|
3
cli/tests/testdata/compile/vfs_implicit_read_permission/main.ts
vendored
Normal file
3
cli/tests/testdata/compile/vfs_implicit_read_permission/main.ts
vendored
Normal 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!" }));
|
2
cli/tests/testdata/npm/deno_run_cowsay_no_permissions.out
vendored
Normal file
2
cli/tests/testdata/npm/deno_run_cowsay_no_permissions.out
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
error: Uncaught PermissionDenied: Requires read access to <CWD>, run again with the --allow-read flag
|
||||
[WILDCARD]
|
Loading…
Add table
Add a link
Reference in a new issue