Skip to content

Commit 6bd8cfa

Browse files
committed
Fix canonicalSpec failing to cache because function not async
1 parent ba5747a commit 6bd8cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/destination/canonicalSpec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function handleNpaResult(result: npa.Result): Promise<string> {
5858
* - https://github.com/npm/npm-package-arg#result-object
5959
* - https://docs.npmjs.com/cli/v7/commands/npm-install
6060
*/
61-
function canonicalSpec(spec: string): Promise<string> {
61+
async function canonicalSpec(spec: string): Promise<string> {
6262
"use cache";
6363

6464
cacheLife("hours");

0 commit comments

Comments
 (0)