Skip to content

Commit 93aecc2

Browse files
committed
TS fixes
1 parent 0e59674 commit 93aecc2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'assert';
22
import { dirname, join, resolve } from 'path';
33
import { type ConsolaInstance } from 'consola';
4-
import { execa, ExecaReturnValue } from 'execa';
4+
import { execa } from 'execa';
55
import fse from 'fs-extra';
66
import { globby } from 'globby';
77
import get from 'lodash.get';
@@ -58,7 +58,7 @@ function compilerOptionsToArgs(options: Record<string, unknown>): string[] {
5858
return Object.entries(options).flatMap(([key, value]) => [`--${key}`, `${value}`]);
5959
}
6060

61-
function assertTypeScriptBuildResult(result: ExecaReturnValue) {
61+
function assertTypeScriptBuildResult(result: Awaited<ReturnType<typeof execa>>) {
6262
if (result.exitCode !== 0) {
6363
console.log('TypeScript compiler exited with non-zero exit code.');
6464
console.log(result.stdout);

src/commands/check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'path';
2-
import { execa, ExecaChildProcess } from 'execa';
2+
import { execa } from 'execa';
33
import fse from 'fs-extra';
44
import { globby } from 'globby';
55
import pLimit from 'p-limit';
@@ -345,7 +345,7 @@ async function checkEngines(args: {
345345

346346
const timeout = `;setTimeout(() => { throw new Error("The Node.js process hangs. There is probably some side-effects. All exports should be free of side effects.") }, 500).unref()`;
347347

348-
function runRequireJSFileCommand(args: { cwd: string; path: string }): ExecaChildProcess {
348+
function runRequireJSFileCommand(args: { cwd: string; path: string }) {
349349
return execa('node', ['-e', `require('${args.path}')${timeout}`], {
350350
cwd: args.cwd,
351351
reject: false,

0 commit comments

Comments
 (0)