mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
remove unused fn
This commit is contained in:
parent
da6ad7a5ed
commit
a3b20a9aff
1 changed files with 0 additions and 13 deletions
13
src/build.ts
13
src/build.ts
|
@ -17,19 +17,6 @@ const logging: LogOptions = {
|
|||
dest: defaultLogDestination,
|
||||
};
|
||||
|
||||
async function* recurseFiles(root: URL): AsyncGenerator<URL, void, unknown> {
|
||||
for (const filename of await readdir(root)) {
|
||||
const fullpath = new URL(filename, root);
|
||||
const info = await stat(fullpath);
|
||||
|
||||
if (info.isDirectory()) {
|
||||
yield* recurseFiles(new URL(fullpath + '/'));
|
||||
} else {
|
||||
yield fullpath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function allPages(root: URL) {
|
||||
const api = new fdir()
|
||||
.filter((p) => /\.(astro|md)$/.test(p))
|
||||
|
|
Loading…
Reference in a new issue