tegami 1.1.1 → 1.1.2
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/dist/cli/index.d.ts +1 -1
- package/dist/generators/simple.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{npm-BLkgWr-D.js → npm-DoPhFKji.js} +717 -394
- package/dist/plugins/cargo.d.ts +1 -1
- package/dist/plugins/git.d.ts +1 -1
- package/dist/plugins/github.d.ts +1 -1
- package/dist/plugins/github.js +1 -1
- package/dist/plugins/gitlab.d.ts +1 -1
- package/dist/plugins/gitlab.js +1 -1
- package/dist/plugins/go.d.ts +1 -1
- package/dist/providers/npm.d.ts +2 -2
- package/dist/providers/npm.js +1 -1
- package/dist/{types-VvvN6oyT.d.ts → types-B50RK1rR.d.ts} +89 -56
- package/package.json +1 -1
- package/dist/{draft-DsxZOCOb.js → draft-CzUiQasJ.js} +1 -1
package/dist/plugins/cargo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as cargo, E as CargoPluginOptions, T as CargoPackage, w as CargoGraph } from "../types-B50RK1rR.js";
|
|
2
2
|
export { CargoGraph, CargoPackage, CargoPluginOptions, cargo };
|
package/dist/plugins/git.d.ts
CHANGED
package/dist/plugins/github.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as WorkspacePackage, b as TegamiContext, j as Draft, s as TegamiPlugin, t as Awaitable, v as PublishPlan } from "../types-B50RK1rR.js";
|
|
2
2
|
import { GitPluginOptions } from "./git.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/github.d.ts
|
package/dist/plugins/github.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as formatPackageVersion, r as formatNpmDistTag } from "../semver-EKJ8yK5U.js";
|
|
2
2
|
import { t as changelogFilename } from "../generate-Bg86OJP4.js";
|
|
3
3
|
import { a as cached, n as execFailure, o as isCI } from "../error-BhMYq9iW.js";
|
|
4
|
-
import { o as readChangelogEntries, t as createDraft } from "../draft-
|
|
4
|
+
import { o as readChangelogEntries, t as createDraft } from "../draft-CzUiQasJ.js";
|
|
5
5
|
import { git } from "./git.js";
|
|
6
6
|
import { n as createVersionRequestBody, r as hasGitChanges, t as commitVersionBranchChanges } from "../version-request-oxy16TJ1.js";
|
|
7
7
|
import { readFile, writeFile } from "node:fs/promises";
|
package/dist/plugins/gitlab.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as WorkspacePackage, b as TegamiContext, j as Draft, s as TegamiPlugin, t as Awaitable, v as PublishPlan } from "../types-B50RK1rR.js";
|
|
2
2
|
import { GitPluginOptions } from "./git.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/gitlab.d.ts
|
package/dist/plugins/gitlab.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as formatPackageVersion, r as formatNpmDistTag } from "../semver-EKJ8yK5U.js";
|
|
2
2
|
import { t as changelogFilename } from "../generate-Bg86OJP4.js";
|
|
3
3
|
import { a as cached, n as execFailure, o as isCI, s as joinPath } from "../error-BhMYq9iW.js";
|
|
4
|
-
import { o as readChangelogEntries, t as createDraft } from "../draft-
|
|
4
|
+
import { o as readChangelogEntries, t as createDraft } from "../draft-CzUiQasJ.js";
|
|
5
5
|
import { git } from "./git.js";
|
|
6
6
|
import { n as createVersionRequestBody, r as hasGitChanges, t as commitVersionBranchChanges } from "../version-request-oxy16TJ1.js";
|
|
7
7
|
import { readFile, writeFile } from "node:fs/promises";
|
package/dist/plugins/go.d.ts
CHANGED
package/dist/providers/npm.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { NpmPackage, NpmPluginOptions, npm };
|
|
1
|
+
import { C as NpmPackage, S as NpmGraph, l as NpmPluginOptions, u as npm, x as DependencySpec } from "../types-B50RK1rR.js";
|
|
2
|
+
export { type DependencySpec, type NpmGraph, NpmPackage, NpmPluginOptions, npm };
|
package/dist/providers/npm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as NpmPackage, t as npm } from "../npm-DoPhFKji.js";
|
|
2
2
|
export { NpmPackage, npm };
|
|
@@ -414,6 +414,90 @@ interface CargoGraph {
|
|
|
414
414
|
packages: Map<string, CargoPackage>;
|
|
415
415
|
}
|
|
416
416
|
//#endregion
|
|
417
|
+
//#region src/providers/npm/graph.d.ts
|
|
418
|
+
declare class NpmPackage extends WorkspacePackage {
|
|
419
|
+
readonly path: string;
|
|
420
|
+
readonly manifest: PackageManifest;
|
|
421
|
+
readonly manager = "npm";
|
|
422
|
+
private dependencies;
|
|
423
|
+
constructor(path: string, manifest: PackageManifest);
|
|
424
|
+
get name(): string;
|
|
425
|
+
get version(): string | undefined;
|
|
426
|
+
write(): Promise<void>;
|
|
427
|
+
initDraft(): PackageDraft;
|
|
428
|
+
getRegistry(): string;
|
|
429
|
+
configureDraft({
|
|
430
|
+
draft
|
|
431
|
+
}: {
|
|
432
|
+
draft: PackageDraft;
|
|
433
|
+
}): void;
|
|
434
|
+
listDependencies(graph: NpmGraph): ResolvedNpmDependency[];
|
|
435
|
+
}
|
|
436
|
+
interface BunWorkspaces {
|
|
437
|
+
packages?: string[];
|
|
438
|
+
catalog?: Record<string, string>;
|
|
439
|
+
catalogs?: Record<string, Record<string, string>>;
|
|
440
|
+
}
|
|
441
|
+
interface PackageManifest {
|
|
442
|
+
name: string;
|
|
443
|
+
version?: string;
|
|
444
|
+
private?: boolean;
|
|
445
|
+
publishConfig?: {
|
|
446
|
+
access?: "public" | "restricted";
|
|
447
|
+
registry?: string;
|
|
448
|
+
tag?: string;
|
|
449
|
+
};
|
|
450
|
+
scripts?: Record<string, string>;
|
|
451
|
+
workspaces?: string[] | BunWorkspaces;
|
|
452
|
+
catalog?: Record<string, string>;
|
|
453
|
+
catalogs?: Record<string, Record<string, string>>;
|
|
454
|
+
dependencies?: Record<string, string>;
|
|
455
|
+
devDependencies?: Record<string, string>;
|
|
456
|
+
peerDependencies?: Record<string, string>;
|
|
457
|
+
optionalDependencies?: Record<string, string>;
|
|
458
|
+
}
|
|
459
|
+
declare const DEP_FIELDS: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];
|
|
460
|
+
type DepField = (typeof DEP_FIELDS)[number];
|
|
461
|
+
type DependencySpec = {
|
|
462
|
+
protocol: "workspace";
|
|
463
|
+
range: string;
|
|
464
|
+
packageName?: string;
|
|
465
|
+
path?: string;
|
|
466
|
+
} | {
|
|
467
|
+
protocol: "file" | "portal";
|
|
468
|
+
path: string;
|
|
469
|
+
} | {
|
|
470
|
+
protocol: "catalog";
|
|
471
|
+
catalogName: string;
|
|
472
|
+
} | {
|
|
473
|
+
protocol: "npm";
|
|
474
|
+
alias: string;
|
|
475
|
+
range: string;
|
|
476
|
+
} | {
|
|
477
|
+
range: string;
|
|
478
|
+
protocol?: undefined;
|
|
479
|
+
};
|
|
480
|
+
interface ResolvedNpmDependency {
|
|
481
|
+
field: DepField;
|
|
482
|
+
name: string;
|
|
483
|
+
spec: DependencySpec;
|
|
484
|
+
linked?: NpmPackage;
|
|
485
|
+
range?: string;
|
|
486
|
+
setRange?: (range: string) => void;
|
|
487
|
+
}
|
|
488
|
+
interface NpmGraph {
|
|
489
|
+
root: string;
|
|
490
|
+
/** package name -> package */
|
|
491
|
+
packages: Map<string, NpmPackage>;
|
|
492
|
+
packagesByPath: Map<string, NpmPackage>;
|
|
493
|
+
catalogs: CatalogSource[];
|
|
494
|
+
}
|
|
495
|
+
interface CatalogSource {
|
|
496
|
+
resolve(name: string, catalogName: string): string | undefined;
|
|
497
|
+
setRange(name: string, catalogName: string, range: string): void;
|
|
498
|
+
write?: () => Promise<void>;
|
|
499
|
+
}
|
|
500
|
+
//#endregion
|
|
417
501
|
//#region src/context.d.ts
|
|
418
502
|
interface TegamiContext {
|
|
419
503
|
/** absolute path */
|
|
@@ -439,31 +523,14 @@ interface TegamiContext {
|
|
|
439
523
|
};
|
|
440
524
|
/** additional context when npm plugin is configured */
|
|
441
525
|
npm?: {
|
|
442
|
-
client: AgentName;
|
|
526
|
+
client: AgentName; /** available after resolve */
|
|
527
|
+
graph?: NpmGraph;
|
|
443
528
|
};
|
|
444
529
|
cargo?: {
|
|
445
530
|
graph: CargoGraph;
|
|
446
531
|
};
|
|
447
532
|
}
|
|
448
533
|
//#endregion
|
|
449
|
-
//#region src/providers/npm/schema.d.ts
|
|
450
|
-
interface PackageManifest {
|
|
451
|
-
name: string;
|
|
452
|
-
version?: string;
|
|
453
|
-
private?: boolean;
|
|
454
|
-
publishConfig?: {
|
|
455
|
-
access?: "public" | "restricted";
|
|
456
|
-
registry?: string;
|
|
457
|
-
tag?: string;
|
|
458
|
-
};
|
|
459
|
-
scripts?: Record<string, string>;
|
|
460
|
-
workspaces?: string[];
|
|
461
|
-
dependencies?: Record<string, string>;
|
|
462
|
-
devDependencies?: Record<string, string>;
|
|
463
|
-
peerDependencies?: Record<string, string>;
|
|
464
|
-
optionalDependencies?: Record<string, string>;
|
|
465
|
-
}
|
|
466
|
-
//#endregion
|
|
467
534
|
//#region src/changelog/generate.d.ts
|
|
468
535
|
interface GenerateFromCommitsOptions {
|
|
469
536
|
/** Start revision. Defaults to the latest reachable git tag, or all history if none exists. */
|
|
@@ -617,46 +684,12 @@ type TrustedPublishOptions = {
|
|
|
617
684
|
};
|
|
618
685
|
//#endregion
|
|
619
686
|
//#region src/providers/npm.d.ts
|
|
620
|
-
declare const DEP_FIELDS: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];
|
|
621
|
-
declare class NpmPackage extends WorkspacePackage {
|
|
622
|
-
readonly path: string;
|
|
623
|
-
readonly manifest: PackageManifest;
|
|
624
|
-
readonly manager = "npm";
|
|
625
|
-
constructor(path: string, manifest: PackageManifest);
|
|
626
|
-
get name(): string;
|
|
627
|
-
get version(): string | undefined;
|
|
628
|
-
write(): Promise<void>;
|
|
629
|
-
initDraft(): PackageDraft;
|
|
630
|
-
getRegistry(): string;
|
|
631
|
-
configureDraft({
|
|
632
|
-
draft
|
|
633
|
-
}: {
|
|
634
|
-
draft: PackageDraft;
|
|
635
|
-
}): void;
|
|
636
|
-
}
|
|
637
|
-
type DependencySpec = {
|
|
638
|
-
protocol: "npm";
|
|
639
|
-
alias: string;
|
|
640
|
-
range: string;
|
|
641
|
-
linked?: WorkspacePackage;
|
|
642
|
-
} | {
|
|
643
|
-
protocol: "workspace";
|
|
644
|
-
range: string;
|
|
645
|
-
linked?: WorkspacePackage;
|
|
646
|
-
} | {
|
|
647
|
-
protocol: "file";
|
|
648
|
-
raw: string;
|
|
649
|
-
linked?: WorkspacePackage;
|
|
650
|
-
} | {
|
|
651
|
-
range: string;
|
|
652
|
-
linked?: WorkspacePackage;
|
|
653
|
-
protocol?: undefined;
|
|
654
|
-
};
|
|
655
687
|
interface DependentRef {
|
|
656
688
|
dependent: NpmPackage;
|
|
657
|
-
kind:
|
|
689
|
+
kind: DepField;
|
|
658
690
|
name: string;
|
|
659
691
|
spec: DependencySpec;
|
|
692
|
+
resolved: ResolvedNpmDependency;
|
|
660
693
|
}
|
|
661
694
|
interface NpmPluginOptions {
|
|
662
695
|
/** Package manager command used for npm registry operations. */
|
|
@@ -841,4 +874,4 @@ interface PublishPreflight {
|
|
|
841
874
|
wait?: string[];
|
|
842
875
|
}
|
|
843
876
|
//#endregion
|
|
844
|
-
export {
|
|
877
|
+
export { WorkspacePackage as A, NpmPackage as C, cargo as D, CargoPluginOptions as E, DraftPolicy as M, PackageDraft as N, PackageGraph as O, BumpType as P, NpmGraph as S, CargoPackage as T, PublishOptions as _, PublishPreflight as a, TegamiContext as b, TegamiPluginOption as c, GenerateChangelogOptions as d, Tegami as f, PackagePublishResult as g, PackagePublishPlan as h, PackageOptions as i, Draft as j, PackageGroup as k, NpmPluginOptions as l, PublishLock as m, GroupOptions as n, TegamiOptions as o, tegami as p, LogGenerator as r, TegamiPlugin as s, Awaitable as t, npm as u, PublishPlan as v, CargoGraph as w, DependencySpec as x, CommitChangelog as y };
|
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@ import { r as handlePluginError } from "./error-BhMYq9iW.js";
|
|
|
3
3
|
import { t as _accessExpressionAsString } from "./_accessExpressionAsString-QhbUZzwv.js";
|
|
4
4
|
import { n as _validateReport, t as _createStandardSchema } from "./_createStandardSchema-BGQyz-uA.js";
|
|
5
5
|
import { n as validateChangelogFrontmatter, t as renderChangelog } from "./shared-C_iSTp_s.js";
|
|
6
|
-
import { t as _assertGuard } from "./_assertGuard-BBn2NbSz.js";
|
|
7
6
|
import { simpleGenerator } from "./generators/simple.js";
|
|
7
|
+
import { t as _assertGuard } from "./_assertGuard-BBn2NbSz.js";
|
|
8
8
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
9
9
|
import path, { basename, dirname, join } from "node:path";
|
|
10
10
|
import * as semver$1 from "semver";
|