Skip to content

Commit b81ba20

Browse files
committed
refactor: remove unused extraction context properties
1 parent 04bc49a commit b81ba20

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/extract-package-api.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ export const extractPackageApi = ({
161161
.andThen((ctx) =>
162162
installPackage(ctx.pkg, ctx.workDir).map((installedPackages) => ({
163163
...ctx,
164-
nodeModulesDir: join(ctx.workDir, "node_modules"),
165164
pkgDir: join(ctx.workDir, "node_modules", ctx.pkgName),
166165
installedPackages,
167166
})),
@@ -180,14 +179,11 @@ export const extractPackageApi = ({
180179
})),
181180
)
182181
.andThen((ctx) =>
183-
createProject(ctx.typesFilePath).map(
184-
({ project, indexFile, sourceFiles }) => ({
185-
...ctx,
186-
project,
187-
indexFile,
188-
sourceFiles,
189-
}),
190-
),
182+
createProject(ctx.typesFilePath).map(({ project, indexFile }) => ({
183+
...ctx,
184+
project,
185+
indexFile,
186+
})),
191187
)
192188
.andThen((ctx) =>
193189
ok(packageOverview(ctx.indexFile)).map((pkgOverview) => ({

0 commit comments

Comments
 (0)