Skip to content

Commit

Permalink
fix: ensure dirname of basepath instead of basepath (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen authored Sep 30, 2022
1 parent 5a27e0e commit 376dee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {
dirname,
extname,
fromFileUrl,
isAbsolute,
Expand Down
3 changes: 2 additions & 1 deletion download.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
colors,
dirname,
ensureDir,
extname,
fromFileUrl,
Expand Down Expand Up @@ -223,7 +224,7 @@ export async function download(options: FetchOptions): Promise<string> {
? await isFile(cacheFilePath)
: setting === "only" || setting !== "reloadAll";

await ensureDir(cacheBasePath);
await ensureDir(dirname(cacheBasePath));

if (!cached) {
const meta = { url };
Expand Down

0 comments on commit 376dee8

Please sign in to comment.