@dev.sail.money/sailor 1.3.0-211 → 1.3.0-95

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.
@@ -5,7 +5,7 @@
5
5
  * Do not edit manually — run `pnpm build` to regenerate.
6
6
  *
7
7
  * Spec version : 1.2.0
8
- * Generated at : 2026-06-25T14:31:14.298Z
8
+ * Generated at : 2026-06-26T09:46:27.970Z
9
9
  */
10
10
  export declare const SAIL_INTELLIGENCE_BASE_URL = "https://api.sail.money";
11
11
  export declare const SAIL_INTELLIGENCE_DOCS_URL = "https://api.sail.money/docs";
@@ -5,7 +5,7 @@
5
5
  * Do not edit manually — run `pnpm build` to regenerate.
6
6
  *
7
7
  * Spec version : 1.2.0
8
- * Generated at : 2026-06-25T14:31:14.298Z
8
+ * Generated at : 2026-06-26T09:46:27.970Z
9
9
  */
10
10
  export const SAIL_INTELLIGENCE_BASE_URL = "https://api.sail.money";
11
11
  export const SAIL_INTELLIGENCE_DOCS_URL = "https://api.sail.money/docs";
@@ -0,0 +1,21 @@
1
+ // Build the publishable npm package as a .tgz archive — the npm analog of `docker build`.
2
+ // Packs under the canonical published name (@sail.money/sailor) so the artifact installs and
3
+ // resolves exactly like the registry package; CI applies the same rename at publish time.
4
+ // ponytail: .tgz is npm's native archive (install offline with `npm i ./<file>.tgz`). For a
5
+ // literal .zip, unpack the tgz and re-zip — not added until something actually needs it.
6
+ import { execSync } from "node:child_process";
7
+ import { readFileSync, writeFileSync } from "node:fs";
8
+
9
+ const PKG = "package.json";
10
+ const CANONICAL = "@sail.money/sailor";
11
+
12
+ const original = readFileSync(PKG, "utf8");
13
+ try {
14
+ const manifest = JSON.parse(original);
15
+ if (manifest.name !== CANONICAL) {
16
+ writeFileSync(PKG, `${JSON.stringify({ ...manifest, name: CANONICAL }, null, 2)}\n`);
17
+ }
18
+ execSync("npm pack", { stdio: "inherit" }); // emits sail.money-sailor-<version>.tgz
19
+ } finally {
20
+ writeFileSync(PKG, original); // restore the working manifest verbatim
21
+ }