mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
42b71d82db
Co-authored-by: David Sherret <dsherret@gmail.com>
20 lines
436 B
JavaScript
20 lines
436 B
JavaScript
const importsDir = Deno.readDirSync(
|
|
Deno.realPathSync("./tla2"),
|
|
);
|
|
|
|
const resolvedPaths = [];
|
|
|
|
for (const { name } of importsDir) {
|
|
const filePath = Deno.realPathSync(`./tla2/${name}`);
|
|
resolvedPaths.push(filePath);
|
|
}
|
|
|
|
resolvedPaths.sort();
|
|
|
|
for (const filePath of resolvedPaths) {
|
|
console.log("loading", filePath);
|
|
const mod = await import(`file://${filePath}`);
|
|
console.log("loaded", mod);
|
|
}
|
|
|
|
console.log("all loaded");
|