@hardfin/cli 0.1.0-dev.27 → 0.1.0-dev.28
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/README.md
CHANGED
|
@@ -454,6 +454,12 @@ The workflow picks the preview version itself. It reads `version` from `package.
|
|
|
454
454
|
if that version is already on npm it increments the patch, so a preview always sorts after
|
|
455
455
|
the last release.
|
|
456
456
|
|
|
457
|
+
Before publishing, the workflow stamps each file in `dist` and its source map with a matching
|
|
458
|
+
debug ID, and uploads the maps to Sentry under the release `@hardfin/cli@<version>`. An error
|
|
459
|
+
report's stack trace then reads as the TypeScript source. The maps are not in the package, and
|
|
460
|
+
publishing skips `prepublishOnly`, so the stamped files are the ones published. The upload
|
|
461
|
+
needs the `SENTRY_AUTH_TOKEN` secret.
|
|
462
|
+
|
|
457
463
|
### Cut a release
|
|
458
464
|
|
|
459
465
|
1. Open a pull request against `dev` that sets `version` in `package.json` to the version
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="497b0264-fbd1-51d6-bd23-fb6c7eed397b")}catch(e){}}();
|
|
2
4
|
import module from "node:module";
|
|
3
5
|
//#region src/cli.ts
|
|
4
6
|
module.enableCompileCache?.();
|
|
@@ -41,3 +43,6 @@ async function toQuickAnswer(args) {
|
|
|
41
43
|
}
|
|
42
44
|
//#endregion
|
|
43
45
|
export {};
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=cli.js.map
|
|
48
|
+
//# debugId=497b0264-fbd1-51d6-bd23-fb6c7eed397b
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a0e4ab3e-9a55-518b-a49b-37189993952e")}catch(e){}}();
|
|
2
4
|
import { n as toCompletion, t as toAnswer } from "./completion-tree-rR_Rmeij.js";
|
|
3
5
|
import { readFileSync } from "node:fs";
|
|
4
6
|
//#region src/command/completion-quick.ts
|
|
@@ -18,3 +20,6 @@ function toQuickAnswer(words, location = new URL("./completion-tree.json", impor
|
|
|
18
20
|
}
|
|
19
21
|
//#endregion
|
|
20
22
|
export { toQuickAnswer };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=completion-quick-BJHDp8OL.js.map
|
|
25
|
+
//# debugId=a0e4ab3e-9a55-518b-a49b-37189993952e
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
//#region src/command/completion-tree.ts
|
|
3
3
|
/** Directive is the last line of an answer, which tells the script what to do beyond the candidates. */
|
|
4
|
+
|
|
5
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b5b3cdcd-37e1-50f6-880a-13e965b5e7ed")}catch(e){}}();
|
|
4
6
|
const Directive = {
|
|
5
7
|
NONE: ":0",
|
|
6
8
|
FILES: ":1"
|
|
@@ -158,3 +160,6 @@ function toLine(description) {
|
|
|
158
160
|
}
|
|
159
161
|
//#endregion
|
|
160
162
|
export { toCompletion as n, toAnswer as t };
|
|
163
|
+
|
|
164
|
+
//# sourceMappingURL=completion-tree-rR_Rmeij.js.map
|
|
165
|
+
//# debugId=b5b3cdcd-37e1-50f6-880a-13e965b5e7ed
|
package/dist/program-C3SGdPbf.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c531fbbe-2dd5-53cf-87a6-723b2926146f")}catch(e){}}();
|
|
2
4
|
import { a as defineCommand, i as GLOBAL_FLAGS, r as ExitCode, t as toInvocation } from "./scrub-VtQmxap1.js";
|
|
3
5
|
import { n as toCompletion, t as toAnswer$1 } from "./completion-tree-rR_Rmeij.js";
|
|
4
6
|
import { createRequire } from "node:module";
|
|
@@ -5994,3 +5996,6 @@ async function toReported(error, isJSON, resolved, level = "error") {
|
|
|
5994
5996
|
}
|
|
5995
5997
|
//#endregion
|
|
5996
5998
|
export { toCli, toReported, wasReportAttempted };
|
|
5999
|
+
|
|
6000
|
+
//# sourceMappingURL=program-C3SGdPbf.js.map
|
|
6001
|
+
//# debugId=c531fbbe-2dd5-53cf-87a6-723b2926146f
|
package/dist/scrub-VtQmxap1.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9fab3688-8d6c-599c-94b2-64daa75cd233")}catch(e){}}();
|
|
2
4
|
import { z } from "zod";
|
|
3
5
|
import { homedir } from "node:os";
|
|
4
6
|
//#region src/command/registry.ts
|
|
@@ -106,3 +108,6 @@ function toFlag(flags, word) {
|
|
|
106
108
|
}
|
|
107
109
|
//#endregion
|
|
108
110
|
export { defineCommand as a, GLOBAL_FLAGS as i, toScrubbed as n, ExitCode as r, toInvocation as t };
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=scrub-VtQmxap1.js.map
|
|
113
|
+
//# debugId=9fab3688-8d6c-599c-94b2-64daa75cd233
|
package/dist/sentry-D5lKx0nm.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a251c173-a448-5d16-93ea-bc9547e82365")}catch(e){}}();
|
|
2
4
|
import { n as toScrubbed } from "./scrub-VtQmxap1.js";
|
|
3
5
|
import { dirname } from "node:path";
|
|
4
6
|
import { request } from "node:http";
|
|
@@ -4382,3 +4384,6 @@ function toTags(delivery) {
|
|
|
4382
4384
|
}
|
|
4383
4385
|
//#endregion
|
|
4384
4386
|
export { send };
|
|
4387
|
+
|
|
4388
|
+
//# sourceMappingURL=sentry-D5lKx0nm.js.map
|
|
4389
|
+
//# debugId=a251c173-a448-5d16-93ea-bc9547e82365
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardfin/cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.28",
|
|
4
4
|
"description": "Command line interface for the Hardfin API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Hardfin, Inc.",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"hardfin": "dist/cli.js"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
-
"dist"
|
|
26
|
+
"dist",
|
|
27
|
+
"!dist/**/*.map"
|
|
27
28
|
],
|
|
28
29
|
"engines": {
|
|
29
30
|
"node": ">=20"
|