mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 02:59:11 -05:00
4cfa34052d
I ended up changing the file system implementation to determine its root directory as the last step of building it instead of being the first step which makes it much more reliable.
14 lines
301 B
JavaScript
14 lines
301 B
JavaScript
const mathDir = import.meta.dirname + "/math";
|
|
const files = Array.from(
|
|
Deno.readDirSync(mathDir).map((entry) => mathDir + "/" + entry.name),
|
|
);
|
|
files.sort();
|
|
for (const file of files) {
|
|
console.log(file);
|
|
}
|
|
|
|
function nonAnalyzable() {
|
|
return "./src/main.ts";
|
|
}
|
|
|
|
await import(nonAnalyzable());
|