File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import astxGlob from './astxGlob'
6
6
import AstxWorker from './AstxWorker'
7
7
import AsyncPool from './AsyncPool'
8
8
import { astxCosmiconfig } from './astxCosmiconfig'
9
+ import { RunTransformOptions } from './runTransform'
9
10
import { RunTransformOnFileOptions } from './runTransformOnFile'
10
11
import PushPullIterable from '../util/PushPullIterable'
11
12
@@ -44,7 +45,7 @@ export default class AstxWorkerPool {
44
45
config,
45
46
signal,
46
47
queueCapacity,
47
- } : Omit < RunTransformOnFileOptions , 'file' > & {
48
+ } : RunTransformOptions & {
48
49
queueCapacity ?: number
49
50
} ) : AsyncIterable < { type : 'result' ; result : IpcTransformResult } | Progress > {
50
51
clearCache ( )
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export default async function runTransformOnFile({
122
122
}
123
123
const [ _result , prettier ] = await Promise . all ( [
124
124
transformFn ( options ) ,
125
- config . prettier !== false ? getPrettier ( Path . dirname ( file ) ) : null ,
125
+ config ? .prettier !== false ? getPrettier ( Path . dirname ( file ) ) : null ,
126
126
] )
127
127
if ( signal ?. aborted ) throw new Error ( 'aborted' )
128
128
if ( transform . astx || transform . replace ) {
You can’t perform that action at this time.
0 commit comments