-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As nodeModulesDirForPackageInner is asynchronous and contains several `await` calls, the file can be created after the first check for existence. The error thrown by `Deno.rename` is not an instance of `Deno.errors.AlreadyExists`, but `move` does work as expected. Tested on macOS (OS error 66) and linux (OS error 39)
- Loading branch information
Showing
2 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ export { | |
resolve, | ||
toFileUrl, | ||
} from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { copy } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
export { copy, exists, move } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
export { basename, extname } from "https://deno.land/[email protected]/path/mod.ts"; | ||
export * as JSONC from "https://deno.land/[email protected]/encoding/jsonc.ts"; | ||
export { encode as base32Encode } from "https://deno.land/[email protected]/encoding/base32.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters