@tailor-platform/sdk 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/{application-ChuNPwnl.mjs → application-DEkgf2w1.mjs} +14 -14
- package/dist/application-DEkgf2w1.mjs.map +1 -0
- package/dist/application-Dl94fzpm.mjs +1 -0
- package/dist/cli/lib.d.mts +3 -2
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +28 -28
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/error-diagnostics.d.mts +10 -0
- package/dist/cli/shared/github-actions.d.mts +11 -0
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/{register-ts-hook-Dn-XlVSD.mjs → register-ts-hook-BD3ArLqY.mjs} +52 -52
- package/dist/register-ts-hook-BD3ArLqY.mjs.map +1 -0
- package/dist/seed/index.d.mts +5 -0
- package/dist/seed/index.mjs +3 -2
- package/dist/seed/index.mjs.map +1 -1
- package/docs/cli-reference.md +11 -2
- package/docs/services/tailordb-migration.md +4 -0
- package/package.json +9 -9
- package/dist/application-ChuNPwnl.mjs.map +0 -1
- package/dist/application-Oh5dMmb5.mjs +0 -1
- package/dist/register-ts-hook-Dn-XlVSD.mjs.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Jsonifiable } from "type-fest";
|
|
2
|
+
//#region src/cli/shared/error-diagnostics.d.ts
|
|
3
|
+
/** Where a failure originated, for tooling that links to source. */
|
|
4
|
+
export interface ErrorSourceLocation {
|
|
5
|
+
/** Absolute path to the file the failure points at. */
|
|
6
|
+
file: string;
|
|
7
|
+
/** 1-based line within `file`. */
|
|
8
|
+
line?: number;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
+
import { ErrorSourceLocation } from "./error-diagnostics.mjs";
|
|
1
2
|
//#region src/cli/shared/github-actions.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Attach the source location a failure points at.
|
|
5
|
+
*
|
|
6
|
+
* Consumed when the command's failure is annotated; the error is otherwise
|
|
7
|
+
* unchanged, so its message and formatting stay the caller's own.
|
|
8
|
+
* @param error - Failure to annotate
|
|
9
|
+
* @param location - Absolute file, and the 1-based line when known
|
|
10
|
+
* @returns The same error
|
|
11
|
+
*/
|
|
12
|
+
export declare function withSourceLocation<T extends Error>(error: T, location: ErrorSourceLocation): T;
|
|
2
13
|
/**
|
|
3
14
|
* Annotate the failure that ended the command, when running in GitHub Actions.
|
|
4
15
|
* @param error - Failure that ended the command
|