Skip to content

Commit fe80021

Browse files
committed
chore: fix mistakes in previous commits
1 parent 48171e2 commit fe80021

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/node/AstxWorkerPool.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import astxGlob from './astxGlob'
66
import AstxWorker from './AstxWorker'
77
import AsyncPool from './AsyncPool'
88
import { astxCosmiconfig } from './astxCosmiconfig'
9+
import { RunTransformOptions } from './runTransform'
910
import { RunTransformOnFileOptions } from './runTransformOnFile'
1011
import PushPullIterable from '../util/PushPullIterable'
1112

@@ -44,7 +45,7 @@ export default class AstxWorkerPool {
4445
config,
4546
signal,
4647
queueCapacity,
47-
}: Omit<RunTransformOnFileOptions, 'file'> & {
48+
}: RunTransformOptions & {
4849
queueCapacity?: number
4950
}): AsyncIterable<{ type: 'result'; result: IpcTransformResult } | Progress> {
5051
clearCache()

src/node/runTransformOnFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default async function runTransformOnFile({
122122
}
123123
const [_result, prettier] = await Promise.all([
124124
transformFn(options),
125-
config.prettier !== false ? getPrettier(Path.dirname(file)) : null,
125+
config?.prettier !== false ? getPrettier(Path.dirname(file)) : null,
126126
])
127127
if (signal?.aborted) throw new Error('aborted')
128128
if (transform.astx || transform.replace) {

0 commit comments

Comments
 (0)