File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { packageJson } from "./package-json";
1212import { packageName } from "./package-name" ;
1313import { packageOverview } from "./package-overview" ;
1414import { packageTypes } from "./package-types" ;
15+ import { removeDir } from "./remove-dir" ;
1516import { tempDir } from "./temp-dir" ;
1617
1718/**
@@ -214,7 +215,16 @@ export const extractPackageApi = ({
214215 pkgDeclarations,
215216 } ) ) ,
216217 )
217- . andThen ( ( ctx ) => changeDir ( ctx . startDir ) . map ( ( ) => ctx ) )
218+ . andThen ( ( ctx ) =>
219+ changeDir ( ctx . startDir )
220+ . map ( ( ) => ctx )
221+ . orElse ( ( ) => ok ( ctx ) ) ,
222+ )
223+ . andThen ( ( ctx ) =>
224+ removeDir ( ctx . rootDir )
225+ . map ( ( ) => ctx )
226+ . orElse ( ( ) => ok ( ctx ) ) ,
227+ )
218228 . andThen ( ( ctx ) =>
219229 ok ( {
220230 name : ctx . pkgJson . name ,
You can’t perform that action at this time.
0 commit comments