Skip to content

Commit 3bdb5bd

Browse files
committed
chore(cli): fix @fern-api/fern-definition-schema types field, keep plain Error (utility package)
1 parent 630e15e commit 3bdb5bd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/cli/fern-definition/schema/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
".": {
1414
"development": "./src/index.ts",
1515
"source": "./src/index.ts",
16-
"types": "./lib/index.d.ts",
16+
"types": "./src/index.ts",
1717
"import": "./lib/index.js",
1818
"default": "./lib/index.js"
1919
}
2020
},
2121
"main": "lib/index.js",
2222
"source": "src/index.ts",
23-
"types": "lib/index.d.ts",
23+
"types": "src/index.ts",
2424
"files": ["lib"],
2525
"scripts": {
2626
"clean": "rm -rf ./lib",

packages/seed/src/TaskContextImpl.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { addPrefixToString } from "@fern-api/core-utils";
44
import { createLogger, LogLevel } from "@fern-api/logger";
55
import {
6-
type CliErrorCode,
6+
CliError,
77
CreateInteractiveTaskParams,
88
Finishable,
99
InteractiveTaskContext,
@@ -79,18 +79,18 @@ export class TaskContextImpl implements Startable<TaskContext>, Finishable, Task
7979

8080
public takeOverTerminal: (run: () => void | Promise<void>) => Promise<void>;
8181

82-
public failAndThrow(message?: string, error?: unknown, _options?: { code?: CliErrorCode }): never {
82+
public failAndThrow(message?: string, error?: unknown, _options?: { code?: CliError.Code }): never {
8383
this.failWithoutThrowing(message, error);
8484
this.finish();
8585
throw new TaskAbortSignal();
8686
}
8787

88-
public failWithoutThrowing(message?: string, error?: unknown, _options?: { code?: CliErrorCode }): void {
88+
public failWithoutThrowing(message?: string, error?: unknown, _options?: { code?: CliError.Code }): void {
8989
logErrorMessage({ message, error, logger: this.logger });
9090
this.result = TaskResult.Failure;
9191
}
9292

93-
public captureException(_error: unknown, _code?: CliErrorCode): void {
93+
public captureException(_error: unknown, _code?: CliError.Code): void {
9494
// no-op in seed context
9595
}
9696

0 commit comments

Comments
 (0)