Skip to content

Commit 554e634

Browse files
committed
fix: add @types/node
1 parent 48245ca commit 554e634

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"devDependencies": {
7474
"@arethetypeswrong/cli": "^0.13.10",
7575
"@total-typescript/shoehorn": "^0.1.1",
76+
"@types/node": "^20.11.19",
7677
"@types/validate-npm-package-name": "^4.0.2",
7778
"@vitest/coverage-v8": "^1.3.0",
7879
"np": "^9.2.0",

pnpm-lock.yaml

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extract-package-api.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ResultAsync, ok, okAsync } from "neverthrow";
2+
import { performance } from "node:perf_hooks";
23
import { join } from "pathe";
34
import { createProject } from "./create-project";
45
import type { ExtractorError } from "./errors";
@@ -139,7 +140,12 @@ export const extractPackageApi = ({
139140
subpath = ".",
140141
maxDepth = 5,
141142
}: ExtractPackageApiOptions): ResultAsync<PackageApi, ExtractorError> =>
142-
okAsync({ pkg, pkgSubpath: subpath, maxDepth, startTime: performance.now() })
143+
okAsync({
144+
pkg,
145+
pkgSubpath: subpath,
146+
maxDepth,
147+
startTime: performance.now(),
148+
})
143149
.andThen((ctx) =>
144150
packageName(ctx.pkg).map((pkgName) => ({
145151
...ctx,

0 commit comments

Comments
 (0)