diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-11-19 18:20:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-19 23:20:14 +0000 |
| commit | 6b478cd0a3fdff15d5d9d8849a3019652b919921 (patch) | |
| tree | a230be068b8c01b127ee4fd26a0e6d54239f1188 /tests/specs/compile/include_folder/main.js | |
| parent | 46b6037644c761369e689704f8e7b857959da155 (diff) | |
feat(compile): ability to embed directory in executable (#26939)
Diffstat (limited to 'tests/specs/compile/include_folder/main.js')
| -rw-r--r-- | tests/specs/compile/include_folder/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/specs/compile/include_folder/main.js b/tests/specs/compile/include_folder/main.js new file mode 100644 index 000000000..831d26167 --- /dev/null +++ b/tests/specs/compile/include_folder/main.js @@ -0,0 +1,8 @@ +const dataDir = import.meta.dirname + "/data"; +const files = Array.from( + Deno.readDirSync(dataDir).map((entry) => dataDir + "/" + entry.name), +); +files.sort(); +for (const file of files) { + console.log(Deno.readTextFileSync(file).trim()); +} |
