File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { existsSync } from "node:fs" ;
2
+ import { readFile } from "node:fs/promises" ;
2
3
import { join } from "node:path" ;
3
4
import { info , warning } from "@actions/core" ;
4
- import { Octokit } from "@octokit/rest" ;
5
- import { readFile } from "fs/promises" ;
5
+ import type { Octokit } from "@octokit/rest" ;
6
6
import {
7
- SemVer ,
7
+ type SemVer ,
8
8
coerce ,
9
9
maxSatisfying ,
10
10
rsort ,
@@ -87,7 +87,10 @@ const extractVersionFromPnpmLockFile = async (
87
87
const lockfile = parse (
88
88
await readFile ( join ( root , "pnpm-lock.yaml" ) , "utf8" ) ,
89
89
) ;
90
- return lockfile . dependencies ?. [ "@biomejs/biome" ] ?. version ;
90
+ return (
91
+ lockfile . devDependencies ?. [ "@biomejs/biome" ] ?. version ??
92
+ lockfile . dependencies ?. [ "@biomejs/biome" ] ?. version
93
+ ) ;
91
94
} catch {
92
95
return undefined ;
93
96
}
You can’t perform that action at this time.
0 commit comments