@mxpicture/build-api 0.2.56 → 0.2.58
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/barrel/Barrel.d.ts +66 -0
- package/dist/barrel/Barrel.d.ts.map +1 -1
- package/dist/barrel/Barrel.js +66 -2
- package/dist/barrel/Barrel.js.map +1 -1
- package/dist/cleanup/Cleanup.d.ts +70 -0
- package/dist/cleanup/Cleanup.d.ts.map +1 -1
- package/dist/cleanup/Cleanup.js +70 -0
- package/dist/cleanup/Cleanup.js.map +1 -1
- package/dist/code/code.common.d.ts +37 -4
- package/dist/code/code.common.d.ts.map +1 -1
- package/dist/code/code.common.js +37 -4
- package/dist/code/code.common.js.map +1 -1
- package/dist/code/code.exports.d.ts +25 -0
- package/dist/code/code.exports.d.ts.map +1 -1
- package/dist/code/code.exports.js +25 -1
- package/dist/code/code.exports.js.map +1 -1
- package/dist/code/code.format.d.ts +23 -0
- package/dist/code/code.format.d.ts.map +1 -1
- package/dist/code/code.format.js +23 -0
- package/dist/code/code.format.js.map +1 -1
- package/dist/common/common.fs.d.ts +22 -0
- package/dist/common/common.fs.d.ts.map +1 -1
- package/dist/common/common.fs.js +22 -0
- package/dist/common/common.fs.js.map +1 -1
- package/dist/common/common.json.d.ts +33 -0
- package/dist/common/common.json.d.ts.map +1 -1
- package/dist/common/common.json.js +45 -0
- package/dist/common/common.json.js.map +1 -1
- package/dist/deps/FixWorkspaceDeps.d.ts +132 -0
- package/dist/deps/FixWorkspaceDeps.d.ts.map +1 -1
- package/dist/deps/FixWorkspaceDeps.js +120 -2
- package/dist/deps/FixWorkspaceDeps.js.map +1 -1
- package/dist/git/GitChanges.d.ts +60 -13
- package/dist/git/GitChanges.d.ts.map +1 -1
- package/dist/git/GitChanges.js +60 -13
- package/dist/git/GitChanges.js.map +1 -1
- package/dist/git/git.util.d.ts +58 -3
- package/dist/git/git.util.d.ts.map +1 -1
- package/dist/git/git.util.js +58 -3
- package/dist/git/git.util.js.map +1 -1
- package/dist/logger/Logger.d.ts +74 -0
- package/dist/logger/Logger.d.ts.map +1 -1
- package/dist/logger/Logger.js +49 -0
- package/dist/logger/Logger.js.map +1 -1
- package/dist/npmPublish/NpmPublisher.d.ts +36 -0
- package/dist/npmPublish/NpmPublisher.d.ts.map +1 -1
- package/dist/npmPublish/NpmPublisher.js +36 -0
- package/dist/npmPublish/NpmPublisher.js.map +1 -1
- package/dist/osInfo/osInfo.common.d.ts +45 -1
- package/dist/osInfo/osInfo.common.d.ts.map +1 -1
- package/dist/osInfo/osInfo.common.js +45 -1
- package/dist/osInfo/osInfo.common.js.map +1 -1
- package/dist/pkg/ExportExtractor.d.ts +44 -0
- package/dist/pkg/ExportExtractor.d.ts.map +1 -0
- package/dist/pkg/ExportExtractor.js +180 -0
- package/dist/pkg/ExportExtractor.js.map +1 -0
- package/dist/pkg/Pkg.d.ts +69 -0
- package/dist/pkg/Pkg.d.ts.map +1 -1
- package/dist/pkg/Pkg.js +69 -0
- package/dist/pkg/Pkg.js.map +1 -1
- package/dist/pkg/SyncPkgVersion.d.ts +35 -0
- package/dist/pkg/SyncPkgVersion.d.ts.map +1 -1
- package/dist/pkg/SyncPkgVersion.js +35 -0
- package/dist/pkg/SyncPkgVersion.js.map +1 -1
- package/dist/pkg/UpdatePackages.d.ts +36 -0
- package/dist/pkg/UpdatePackages.d.ts.map +1 -1
- package/dist/pkg/UpdatePackages.js +36 -0
- package/dist/pkg/UpdatePackages.js.map +1 -1
- package/dist/pkg/index.d.ts +1 -0
- package/dist/pkg/index.d.ts.map +1 -1
- package/dist/pkg/index.js +1 -0
- package/dist/pkg/index.js.map +1 -1
- package/dist/pkg/pkg.common.d.ts +73 -0
- package/dist/pkg/pkg.common.d.ts.map +1 -1
- package/dist/pkg/pkg.common.js +73 -0
- package/dist/pkg/pkg.common.js.map +1 -1
- package/dist/pkg/pkg.fs.d.ts +53 -0
- package/dist/pkg/pkg.fs.d.ts.map +1 -1
- package/dist/pkg/pkg.fs.js +57 -5
- package/dist/pkg/pkg.fs.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/types.barrel.d.ts +28 -0
- package/dist/types/types.barrel.d.ts.map +1 -1
- package/dist/types/types.barrel.js.map +1 -1
- package/dist/types/types.changelog.d.ts +28 -0
- package/dist/types/types.changelog.d.ts.map +1 -1
- package/dist/types/types.changelog.js +9 -0
- package/dist/types/types.changelog.js.map +1 -1
- package/dist/types/types.cleanup.d.ts +19 -0
- package/dist/types/types.cleanup.d.ts.map +1 -1
- package/dist/types/types.cleanup.js.map +1 -1
- package/dist/types/types.code.d.ts +36 -0
- package/dist/types/types.code.d.ts.map +1 -1
- package/dist/types/types.code.js.map +1 -1
- package/dist/types/types.deps.d.ts +27 -0
- package/dist/types/types.deps.d.ts.map +1 -1
- package/dist/types/types.deps.js +10 -0
- package/dist/types/types.deps.js.map +1 -1
- package/dist/types/types.documents.d.ts +9 -0
- package/dist/types/types.documents.d.ts.map +1 -1
- package/dist/types/types.documents.js.map +1 -1
- package/dist/types/types.exports.d.ts +42 -0
- package/dist/types/types.exports.d.ts.map +1 -0
- package/dist/types/types.exports.js +2 -0
- package/dist/types/types.exports.js.map +1 -0
- package/dist/types/types.git.d.ts +25 -0
- package/dist/types/types.git.d.ts.map +1 -1
- package/dist/types/types.git.js.map +1 -1
- package/dist/types/types.npm.d.ts +7 -0
- package/dist/types/types.npm.d.ts.map +1 -1
- package/dist/types/types.npm.js.map +1 -1
- package/dist/types/types.os.d.ts +8 -0
- package/dist/types/types.os.d.ts.map +1 -1
- package/dist/types/types.os.js.map +1 -1
- package/dist/types/types.package.d.ts +48 -0
- package/dist/types/types.package.d.ts.map +1 -1
- package/dist/types/types.package.js.map +1 -1
- package/dist/types/types.run.d.ts +4 -0
- package/dist/types/types.run.d.ts.map +1 -1
- package/dist/types/types.run.js.map +1 -1
- package/dist/types/types.vscode.d.ts +46 -0
- package/dist/types/types.vscode.d.ts.map +1 -1
- package/dist/types/types.vscode.js.map +1 -1
- package/dist/types/types.workspace.d.ts +18 -0
- package/dist/types/types.workspace.d.ts.map +1 -1
- package/dist/types/types.workspace.js +6 -0
- package/dist/types/types.workspace.js.map +1 -1
- package/dist/vscode/vscode.config.d.ts +18 -0
- package/dist/vscode/vscode.config.d.ts.map +1 -1
- package/dist/vscode/vscode.config.js +18 -0
- package/dist/vscode/vscode.config.js.map +1 -1
- package/dist/vscode/vscode.profiles.d.ts +37 -0
- package/dist/vscode/vscode.profiles.d.ts.map +1 -1
- package/dist/vscode/vscode.profiles.js +37 -0
- package/dist/vscode/vscode.profiles.js.map +1 -1
- package/dist/vscode/vscode.settings.d.ts +26 -1
- package/dist/vscode/vscode.settings.d.ts.map +1 -1
- package/dist/vscode/vscode.settings.js +28 -3
- package/dist/vscode/vscode.settings.js.map +1 -1
- package/dist/vscode/vscode.storage.d.ts +21 -1
- package/dist/vscode/vscode.storage.d.ts.map +1 -1
- package/dist/vscode/vscode.storage.js +23 -3
- package/dist/vscode/vscode.storage.js.map +1 -1
- package/dist/vscode/vscode.workspace.d.ts +17 -0
- package/dist/vscode/vscode.workspace.d.ts.map +1 -1
- package/dist/vscode/vscode.workspace.js +19 -2
- package/dist/vscode/vscode.workspace.js.map +1 -1
- package/dist/workspace/Workspace.d.ts +85 -0
- package/dist/workspace/Workspace.d.ts.map +1 -1
- package/dist/workspace/Workspace.js +85 -0
- package/dist/workspace/Workspace.js.map +1 -1
- package/dist/workspace/workspace.common.d.ts +42 -1
- package/dist/workspace/workspace.common.d.ts.map +1 -1
- package/dist/workspace/workspace.common.js +42 -1
- package/dist/workspace/workspace.common.js.map +1 -1
- package/package.json +3 -1
|
@@ -1,14 +1,42 @@
|
|
|
1
1
|
import { DocumentData } from "./types.documents.js";
|
|
2
|
+
/**
|
|
3
|
+
* Enumeration of change-watch source types.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Determines how file changes are detected — either via a changelog file
|
|
7
|
+
* or by inspecting git history.
|
|
8
|
+
*/
|
|
2
9
|
export declare enum ChangeWatchType {
|
|
10
|
+
/** Watch for changes recorded in a changelog file. */
|
|
3
11
|
changelog = "changelog",
|
|
12
|
+
/** Watch for changes derived from git commit history. */
|
|
4
13
|
gitHistory = "gitHistory"
|
|
5
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Configuration for a single change-watch rule.
|
|
17
|
+
*/
|
|
6
18
|
export interface ChangeWatch {
|
|
19
|
+
/** Glob pattern that identifies the files to watch. */
|
|
7
20
|
pattern: string;
|
|
21
|
+
/** The source type used to detect changes. */
|
|
8
22
|
type: ChangeWatchType;
|
|
9
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Callback invoked when watched files change.
|
|
26
|
+
*
|
|
27
|
+
* @typeParam T - The document data shape returned by the handler.
|
|
28
|
+
* @param paths - Absolute paths of the files that changed.
|
|
29
|
+
* @param watch - The change-watch rule that triggered this event.
|
|
30
|
+
* @returns A promise resolving to the resulting document data, or `null` if no data was produced.
|
|
31
|
+
*/
|
|
10
32
|
export type ChangeEventHandler<T extends DocumentData> = (paths: string[], watch: ChangeWatch) => Promise<T | null>;
|
|
33
|
+
/**
|
|
34
|
+
* A change-watch rule paired with its event handler.
|
|
35
|
+
*
|
|
36
|
+
* @typeParam T - The document data shape returned by the handler.
|
|
37
|
+
*/
|
|
11
38
|
export interface ChangeWatchHandler<T extends DocumentData> extends ChangeWatch {
|
|
39
|
+
/** The handler function to invoke when matching files change. */
|
|
12
40
|
handler: ChangeEventHandler<T>;
|
|
13
41
|
}
|
|
14
42
|
//# sourceMappingURL=types.changelog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.changelog.d.ts","sourceRoot":"","sources":["../../src/types/types.changelog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,oBAAY,eAAe;IACzB,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,YAAY,IAAI,CACvD,KAAK,EAAE,MAAM,EAAE,EACf,KAAK,EAAE,WAAW,KACf,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEvB,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,YAAY,CACtB,SAAQ,WAAW;IACnB,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC"}
|
|
1
|
+
{"version":3,"file":"types.changelog.d.ts","sourceRoot":"","sources":["../../src/types/types.changelog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;;GAMG;AACH,oBAAY,eAAe;IACzB,sDAAsD;IACtD,SAAS,cAAc;IACvB,yDAAyD;IACzD,UAAU,eAAe;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,YAAY,IAAI,CACvD,KAAK,EAAE,MAAM,EAAE,EACf,KAAK,EAAE,WAAW,KACf,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEvB;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,YAAY,CACtB,SAAQ,WAAW;IACnB,iEAAiE;IACjE,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumeration of change-watch source types.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Determines how file changes are detected — either via a changelog file
|
|
6
|
+
* or by inspecting git history.
|
|
7
|
+
*/
|
|
1
8
|
export var ChangeWatchType;
|
|
2
9
|
(function (ChangeWatchType) {
|
|
10
|
+
/** Watch for changes recorded in a changelog file. */
|
|
3
11
|
ChangeWatchType["changelog"] = "changelog";
|
|
12
|
+
/** Watch for changes derived from git commit history. */
|
|
4
13
|
ChangeWatchType["gitHistory"] = "gitHistory";
|
|
5
14
|
})(ChangeWatchType || (ChangeWatchType = {}));
|
|
6
15
|
//# sourceMappingURL=types.changelog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.changelog.js","sourceRoot":"","sources":["../../src/types/types.changelog.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"types.changelog.js","sourceRoot":"","sources":["../../src/types/types.changelog.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,sDAAsD;IACtD,0CAAuB,CAAA;IACvB,yDAAyD;IACzD,4CAAyB,CAAA;AAC3B,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B","sourcesContent":["import { DocumentData } from \"./types.documents.js\";\n\n/**\n * Enumeration of change-watch source types.\n *\n * @remarks\n * Determines how file changes are detected — either via a changelog file\n * or by inspecting git history.\n */\nexport enum ChangeWatchType {\n /** Watch for changes recorded in a changelog file. */\n changelog = \"changelog\",\n /** Watch for changes derived from git commit history. */\n gitHistory = \"gitHistory\",\n}\n\n/**\n * Configuration for a single change-watch rule.\n */\nexport interface ChangeWatch {\n /** Glob pattern that identifies the files to watch. */\n pattern: string;\n /** The source type used to detect changes. */\n type: ChangeWatchType;\n}\n\n/**\n * Callback invoked when watched files change.\n *\n * @typeParam T - The document data shape returned by the handler.\n * @param paths - Absolute paths of the files that changed.\n * @param watch - The change-watch rule that triggered this event.\n * @returns A promise resolving to the resulting document data, or `null` if no data was produced.\n */\nexport type ChangeEventHandler<T extends DocumentData> = (\n paths: string[],\n watch: ChangeWatch,\n) => Promise<T | null>;\n\n/**\n * A change-watch rule paired with its event handler.\n *\n * @typeParam T - The document data shape returned by the handler.\n */\nexport interface ChangeWatchHandler<\n T extends DocumentData,\n> extends ChangeWatch {\n /** The handler function to invoke when matching files change. */\n handler: ChangeEventHandler<T>;\n}\n"]}
|
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
import { RunRepoRootParams } from "./types.run.js";
|
|
2
|
+
/**
|
|
3
|
+
* Describes an item that is scheduled for deletion.
|
|
4
|
+
*/
|
|
2
5
|
export interface ToBeDeleted {
|
|
6
|
+
/** Name (file or directory) to delete. */
|
|
3
7
|
name: string;
|
|
8
|
+
/** Optional suffix appended to the name when moving instead of deleting. */
|
|
4
9
|
moveSuffix?: string;
|
|
5
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* A resolved cleanup target with full path information.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Extends {@link ToBeDeleted} with absolute path details so the cleanup
|
|
16
|
+
* operation knows exactly where to find the item and, optionally, where
|
|
17
|
+
* to move it.
|
|
18
|
+
*/
|
|
6
19
|
export interface ToCleanup extends ToBeDeleted {
|
|
20
|
+
/** Absolute path of the item to clean up. */
|
|
7
21
|
path: string;
|
|
22
|
+
/** Absolute destination path when moving rather than deleting. */
|
|
8
23
|
moveTo?: string;
|
|
9
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Parameters for running a cleanup operation across a repository.
|
|
27
|
+
*/
|
|
10
28
|
export interface CleanupParams extends RunRepoRootParams {
|
|
29
|
+
/** Items to delete or move during cleanup. */
|
|
11
30
|
toBeDeleted?: ToBeDeleted[];
|
|
12
31
|
}
|
|
13
32
|
//# sourceMappingURL=types.cleanup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cleanup.d.ts","sourceRoot":"","sources":["../../src/types/types.cleanup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"types.cleanup.d.ts","sourceRoot":"","sources":["../../src/types/types.cleanup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,8CAA8C;IAC9C,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cleanup.js","sourceRoot":"","sources":["../../src/types/types.cleanup.ts"],"names":[],"mappings":"","sourcesContent":["import { RunRepoRootParams } from \"./types.run.js\";\n\nexport interface ToBeDeleted {\n name: string;\n moveSuffix?: string;\n}\n\nexport interface ToCleanup extends ToBeDeleted {\n path: string;\n moveTo?: string;\n}\n\nexport interface CleanupParams extends RunRepoRootParams {\n toBeDeleted?: ToBeDeleted[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.cleanup.js","sourceRoot":"","sources":["../../src/types/types.cleanup.ts"],"names":[],"mappings":"","sourcesContent":["import { RunRepoRootParams } from \"./types.run.js\";\n\n/**\n * Describes an item that is scheduled for deletion.\n */\nexport interface ToBeDeleted {\n /** Name (file or directory) to delete. */\n name: string;\n /** Optional suffix appended to the name when moving instead of deleting. */\n moveSuffix?: string;\n}\n\n/**\n * A resolved cleanup target with full path information.\n *\n * @remarks\n * Extends {@link ToBeDeleted} with absolute path details so the cleanup\n * operation knows exactly where to find the item and, optionally, where\n * to move it.\n */\nexport interface ToCleanup extends ToBeDeleted {\n /** Absolute path of the item to clean up. */\n path: string;\n /** Absolute destination path when moving rather than deleting. */\n moveTo?: string;\n}\n\n/**\n * Parameters for running a cleanup operation across a repository.\n */\nexport interface CleanupParams extends RunRepoRootParams {\n /** Items to delete or move during cleanup. */\n toBeDeleted?: ToBeDeleted[];\n}\n"]}
|
|
@@ -1,28 +1,64 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
+
/**
|
|
3
|
+
* A parsed TypeScript source file together with its type checker.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Bundles the file path, the compiler's {@link ts.SourceFile} AST node,
|
|
7
|
+
* and the {@link ts.TypeChecker} so that downstream consumers can perform
|
|
8
|
+
* type-aware analysis without re-creating a program.
|
|
9
|
+
*/
|
|
2
10
|
export interface SourceFile {
|
|
11
|
+
/** Absolute path to the TypeScript source file. */
|
|
3
12
|
filePath: string;
|
|
13
|
+
/** The TypeScript type checker associated with this file's program. */
|
|
4
14
|
checker: ts.TypeChecker;
|
|
15
|
+
/** The parsed AST representation of the source file. */
|
|
5
16
|
sourceFile: ts.SourceFile;
|
|
6
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Metadata for a single exported symbol within a source file.
|
|
20
|
+
*/
|
|
7
21
|
export interface SourceExportItem {
|
|
22
|
+
/** Export name (e.g. `"foo"`, `"default"`). */
|
|
8
23
|
name: string;
|
|
24
|
+
/** Human-readable kind of the export (e.g. `"function"`, `"class"`, `"type"`). */
|
|
9
25
|
kind: string;
|
|
26
|
+
/** Whether TypeScript considers this export type-only. */
|
|
10
27
|
isTypeOnly: boolean;
|
|
28
|
+
/** Whether the export originates from another module via `export … from` or `export *`. */
|
|
11
29
|
isReExport: boolean;
|
|
30
|
+
/** Declaration kind strings useful for debugging (e.g. `["FunctionDeclaration"]`). */
|
|
12
31
|
declarations: string[];
|
|
13
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The complete set of exports discovered in a single source file.
|
|
35
|
+
*/
|
|
14
36
|
export interface SourceExport {
|
|
37
|
+
/** Individual export items found in the file. */
|
|
15
38
|
items: SourceExportItem[];
|
|
39
|
+
/** Whether the file uses selective (named) exports rather than `export *`. */
|
|
16
40
|
selectiveExport: boolean;
|
|
17
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Parameters for extracting exports from a TypeScript file.
|
|
44
|
+
*/
|
|
18
45
|
export interface FileExportsParams {
|
|
46
|
+
/** Absolute path to the file whose exports should be extracted. */
|
|
19
47
|
filePath: string;
|
|
48
|
+
/**
|
|
49
|
+
* Optional flags that control which exports are included in the result.
|
|
50
|
+
*/
|
|
20
51
|
opts?: {
|
|
52
|
+
/** Include type-only exports (e.g. `export type { Foo }`). */
|
|
21
53
|
includeTypeOnly?: boolean;
|
|
54
|
+
/** Include re-exports originating from other modules. */
|
|
22
55
|
includeReExports?: boolean;
|
|
56
|
+
/** Include the `default` export. */
|
|
23
57
|
includeDefault?: boolean;
|
|
58
|
+
/** Include exports marked as private by convention. */
|
|
24
59
|
includePrivate?: boolean;
|
|
25
60
|
};
|
|
61
|
+
/** A pre-built {@link SourceFile} to reuse, avoiding redundant parsing. */
|
|
26
62
|
preBuiltSource?: SourceFile;
|
|
27
63
|
}
|
|
28
64
|
//# sourceMappingURL=types.code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.code.d.ts","sourceRoot":"","sources":["../../src/types/types.code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QACL,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"types.code.d.ts","sourceRoot":"","sources":["../../src/types/types.code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC;IACxB,wDAAwD;IACxD,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,UAAU,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,UAAU,EAAE,OAAO,CAAC;IACpB,sFAAsF;IACtF,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,iDAAiD;IACjD,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,8EAA8E;IAC9E,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE;QACL,8DAA8D;QAC9D,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,yDAAyD;QACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,oCAAoC;QACpC,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,uDAAuD;QACvD,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,2EAA2E;IAC3E,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.code.js","sourceRoot":"","sources":["../../src/types/types.code.ts"],"names":[],"mappings":"","sourcesContent":["import ts from \"typescript\";\n\nexport interface SourceFile {\n filePath: string;\n checker: ts.TypeChecker;\n sourceFile: ts.SourceFile;\n}\n\nexport interface SourceExportItem {\n
|
|
1
|
+
{"version":3,"file":"types.code.js","sourceRoot":"","sources":["../../src/types/types.code.ts"],"names":[],"mappings":"","sourcesContent":["import ts from \"typescript\";\n\n/**\n * A parsed TypeScript source file together with its type checker.\n *\n * @remarks\n * Bundles the file path, the compiler's {@link ts.SourceFile} AST node,\n * and the {@link ts.TypeChecker} so that downstream consumers can perform\n * type-aware analysis without re-creating a program.\n */\nexport interface SourceFile {\n /** Absolute path to the TypeScript source file. */\n filePath: string;\n /** The TypeScript type checker associated with this file's program. */\n checker: ts.TypeChecker;\n /** The parsed AST representation of the source file. */\n sourceFile: ts.SourceFile;\n}\n\n/**\n * Metadata for a single exported symbol within a source file.\n */\nexport interface SourceExportItem {\n /** Export name (e.g. `\"foo\"`, `\"default\"`). */\n name: string;\n /** Human-readable kind of the export (e.g. `\"function\"`, `\"class\"`, `\"type\"`). */\n kind: string;\n /** Whether TypeScript considers this export type-only. */\n isTypeOnly: boolean;\n /** Whether the export originates from another module via `export … from` or `export *`. */\n isReExport: boolean;\n /** Declaration kind strings useful for debugging (e.g. `[\"FunctionDeclaration\"]`). */\n declarations: string[];\n}\n\n/**\n * The complete set of exports discovered in a single source file.\n */\nexport interface SourceExport {\n /** Individual export items found in the file. */\n items: SourceExportItem[];\n /** Whether the file uses selective (named) exports rather than `export *`. */\n selectiveExport: boolean;\n}\n\n/**\n * Parameters for extracting exports from a TypeScript file.\n */\nexport interface FileExportsParams {\n /** Absolute path to the file whose exports should be extracted. */\n filePath: string;\n /**\n * Optional flags that control which exports are included in the result.\n */\n opts?: {\n /** Include type-only exports (e.g. `export type { Foo }`). */\n includeTypeOnly?: boolean;\n /** Include re-exports originating from other modules. */\n includeReExports?: boolean;\n /** Include the `default` export. */\n includeDefault?: boolean;\n /** Include exports marked as private by convention. */\n includePrivate?: boolean;\n };\n /** A pre-built {@link SourceFile} to reuse, avoiding redundant parsing. */\n preBuiltSource?: SourceFile;\n}\n"]}
|
|
@@ -1,26 +1,53 @@
|
|
|
1
1
|
import type { Pkg } from "../pkg/Pkg.js";
|
|
2
2
|
import { MapEntry } from "./types.package.js";
|
|
3
3
|
import { RunRepoRootParams } from "./types.run.js";
|
|
4
|
+
/**
|
|
5
|
+
* The processing mode for workspace dependency operations.
|
|
6
|
+
*/
|
|
4
7
|
export declare enum DepsProcessMode {
|
|
8
|
+
/** Fix workspace dependency references to concrete values. */
|
|
5
9
|
fix = "fix",
|
|
10
|
+
/** Restore workspace dependency references to their original form. */
|
|
6
11
|
restore = "restore"
|
|
7
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* The replacement strategy used when fixing workspace dependencies.
|
|
15
|
+
*/
|
|
8
16
|
export declare enum DepsReplacementMode {
|
|
17
|
+
/** Replace workspace references with concrete version strings. */
|
|
9
18
|
version = "version",
|
|
19
|
+
/** Replace workspace references with `file:` protocol paths. */
|
|
10
20
|
file = "file"
|
|
11
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Core data required to fix workspace dependencies for a consuming package.
|
|
24
|
+
*/
|
|
12
25
|
export interface FixWorkspaceDepsMain {
|
|
26
|
+
/** Mapping entries that describe package-to-package relationships. */
|
|
13
27
|
mapEntries: MapEntry[];
|
|
28
|
+
/** The package whose dependencies are being fixed. */
|
|
14
29
|
consumingPkg: Pkg;
|
|
30
|
+
/** Map of package names to their resolved version strings. */
|
|
15
31
|
versionMap: Map<string, string>;
|
|
32
|
+
/** Set of package names that belong to the workspace. */
|
|
16
33
|
workspacePackages: Set<string>;
|
|
17
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Extended dependency-fix data for a specific workspace package and version.
|
|
37
|
+
*/
|
|
18
38
|
export interface FixWorkspaceDepsData extends FixWorkspaceDepsMain {
|
|
39
|
+
/** The name of the dependency package being processed. */
|
|
19
40
|
pkg: string;
|
|
41
|
+
/** The resolved version string for the dependency. */
|
|
20
42
|
version: string;
|
|
21
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Parameters for running a workspace dependency fix or restore operation.
|
|
46
|
+
*/
|
|
22
47
|
export interface FixWorkspaceDepsParams extends RunRepoRootParams {
|
|
48
|
+
/** Whether to fix or restore workspace dependency references. */
|
|
23
49
|
mode: DepsProcessMode;
|
|
50
|
+
/** The replacement strategy to apply. */
|
|
24
51
|
replacement: DepsReplacementMode;
|
|
25
52
|
}
|
|
26
53
|
//# sourceMappingURL=types.deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.deps.d.ts","sourceRoot":"","sources":["../../src/types/types.deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,mBAAmB,CAAC;CAClC"}
|
|
1
|
+
{"version":3,"file":"types.deps.d.ts","sourceRoot":"","sources":["../../src/types/types.deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,oBAAY,eAAe;IACzB,8DAA8D;IAC9D,GAAG,QAAQ;IACX,sEAAsE;IACtE,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,kEAAkE;IAClE,OAAO,YAAY;IACnB,gEAAgE;IAChE,IAAI,SAAS;CACd;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,sEAAsE;IACtE,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,sDAAsD;IACtD,YAAY,EAAE,GAAG,CAAC;IAClB,8DAA8D;IAC9D,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,yDAAyD;IACzD,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,iEAAiE;IACjE,IAAI,EAAE,eAAe,CAAC;IACtB,yCAAyC;IACzC,WAAW,EAAE,mBAAmB,CAAC;CAClC"}
|
package/dist/types/types.deps.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The processing mode for workspace dependency operations.
|
|
3
|
+
*/
|
|
1
4
|
export var DepsProcessMode;
|
|
2
5
|
(function (DepsProcessMode) {
|
|
6
|
+
/** Fix workspace dependency references to concrete values. */
|
|
3
7
|
DepsProcessMode["fix"] = "fix";
|
|
8
|
+
/** Restore workspace dependency references to their original form. */
|
|
4
9
|
DepsProcessMode["restore"] = "restore";
|
|
5
10
|
})(DepsProcessMode || (DepsProcessMode = {}));
|
|
11
|
+
/**
|
|
12
|
+
* The replacement strategy used when fixing workspace dependencies.
|
|
13
|
+
*/
|
|
6
14
|
export var DepsReplacementMode;
|
|
7
15
|
(function (DepsReplacementMode) {
|
|
16
|
+
/** Replace workspace references with concrete version strings. */
|
|
8
17
|
DepsReplacementMode["version"] = "version";
|
|
18
|
+
/** Replace workspace references with `file:` protocol paths. */
|
|
9
19
|
DepsReplacementMode["file"] = "file";
|
|
10
20
|
})(DepsReplacementMode || (DepsReplacementMode = {}));
|
|
11
21
|
//# sourceMappingURL=types.deps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.deps.js","sourceRoot":"","sources":["../../src/types/types.deps.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"types.deps.js","sourceRoot":"","sources":["../../src/types/types.deps.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,8DAA8D;IAC9D,8BAAW,CAAA;IACX,sEAAsE;IACtE,sCAAmB,CAAA;AACrB,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,kEAAkE;IAClE,0CAAmB,CAAA;IACnB,gEAAgE;IAChE,oCAAa,CAAA;AACf,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B","sourcesContent":["import type { Pkg } from \"../pkg/Pkg.js\";\nimport { MapEntry } from \"./types.package.js\";\nimport { RunRepoRootParams } from \"./types.run.js\";\n\n/**\n * The processing mode for workspace dependency operations.\n */\nexport enum DepsProcessMode {\n /** Fix workspace dependency references to concrete values. */\n fix = \"fix\",\n /** Restore workspace dependency references to their original form. */\n restore = \"restore\",\n}\n\n/**\n * The replacement strategy used when fixing workspace dependencies.\n */\nexport enum DepsReplacementMode {\n /** Replace workspace references with concrete version strings. */\n version = \"version\",\n /** Replace workspace references with `file:` protocol paths. */\n file = \"file\",\n}\n\n/**\n * Core data required to fix workspace dependencies for a consuming package.\n */\nexport interface FixWorkspaceDepsMain {\n /** Mapping entries that describe package-to-package relationships. */\n mapEntries: MapEntry[];\n /** The package whose dependencies are being fixed. */\n consumingPkg: Pkg;\n /** Map of package names to their resolved version strings. */\n versionMap: Map<string, string>;\n /** Set of package names that belong to the workspace. */\n workspacePackages: Set<string>;\n}\n\n/**\n * Extended dependency-fix data for a specific workspace package and version.\n */\nexport interface FixWorkspaceDepsData extends FixWorkspaceDepsMain {\n /** The name of the dependency package being processed. */\n pkg: string;\n /** The resolved version string for the dependency. */\n version: string;\n}\n\n/**\n * Parameters for running a workspace dependency fix or restore operation.\n */\nexport interface FixWorkspaceDepsParams extends RunRepoRootParams {\n /** Whether to fix or restore workspace dependency references. */\n mode: DepsProcessMode;\n /** The replacement strategy to apply. */\n replacement: DepsReplacementMode;\n}\n"]}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The value type for a single field within a document.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Intentionally typed as `any` to allow arbitrary document shapes.
|
|
6
|
+
*/
|
|
1
7
|
export type DocumentFieldValue = any;
|
|
8
|
+
/**
|
|
9
|
+
* A generic document represented as a string-keyed map of field values.
|
|
10
|
+
*/
|
|
2
11
|
export type DocumentData = {
|
|
3
12
|
[field: string]: DocumentFieldValue;
|
|
4
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.documents.d.ts","sourceRoot":"","sources":["../../src/types/types.documents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.documents.d.ts","sourceRoot":"","sources":["../../src/types/types.documents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.documents.js","sourceRoot":"","sources":["../../src/types/types.documents.ts"],"names":[],"mappings":"","sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DocumentFieldValue = any;\nexport type DocumentData = { [field: string]: DocumentFieldValue };\n"]}
|
|
1
|
+
{"version":3,"file":"types.documents.js","sourceRoot":"","sources":["../../src/types/types.documents.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The value type for a single field within a document.\n *\n * @remarks\n * Intentionally typed as `any` to allow arbitrary document shapes.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DocumentFieldValue = any;\n\n/**\n * A generic document represented as a string-keyed map of field values.\n */\nexport type DocumentData = { [field: string]: DocumentFieldValue };\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { RunRepoRootParams } from "./types.run.js";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a discovered export in a package.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExportNode {
|
|
6
|
+
/** Export name */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Type of export (function, object, class, etc.) */
|
|
9
|
+
kind: string;
|
|
10
|
+
/** Source entrypoint */
|
|
11
|
+
source: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Represents a resolved package entrypoint.
|
|
15
|
+
*/
|
|
16
|
+
export interface EntryPoint {
|
|
17
|
+
/** Import specifier used to load the entrypoint */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Absolute path to resolved file */
|
|
20
|
+
file?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Final API analysis result.
|
|
24
|
+
*/
|
|
25
|
+
export interface PackageAPI {
|
|
26
|
+
/** Absolute package root */
|
|
27
|
+
packageRoot: string;
|
|
28
|
+
/** All discovered entrypoints */
|
|
29
|
+
entrypoints: EntryPoint[];
|
|
30
|
+
/** Runtime exports discovered via module loading */
|
|
31
|
+
runtimeExports: ExportNode[];
|
|
32
|
+
/** Type exports discovered via `.d.ts` parsing */
|
|
33
|
+
typeExports: ExportNode[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Parameters for bulk-updating packages that match a pattern.
|
|
37
|
+
*/
|
|
38
|
+
export interface ExportExtractorParams extends RunRepoRootParams {
|
|
39
|
+
package: string;
|
|
40
|
+
json?: string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.exports.d.ts","sourceRoot":"","sources":["../../src/types/types.exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IAEb,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IAEX,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IAEpB,iCAAiC;IACjC,WAAW,EAAE,UAAU,EAAE,CAAC;IAE1B,oDAAoD;IACpD,cAAc,EAAE,UAAU,EAAE,CAAC;IAE7B,kDAAkD;IAClD,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.exports.js","sourceRoot":"","sources":["../../src/types/types.exports.ts"],"names":[],"mappings":"","sourcesContent":["import { RunRepoRootParams } from \"./types.run.js\";\n\n/**\n * Represents a discovered export in a package.\n */\nexport interface ExportNode {\n /** Export name */\n name: string;\n\n /** Type of export (function, object, class, etc.) */\n kind: string;\n\n /** Source entrypoint */\n source: string;\n}\n\n/**\n * Represents a resolved package entrypoint.\n */\nexport interface EntryPoint {\n /** Import specifier used to load the entrypoint */\n id: string;\n\n /** Absolute path to resolved file */\n file?: string;\n}\n\n/**\n * Final API analysis result.\n */\nexport interface PackageAPI {\n /** Absolute package root */\n packageRoot: string;\n\n /** All discovered entrypoints */\n entrypoints: EntryPoint[];\n\n /** Runtime exports discovered via module loading */\n runtimeExports: ExportNode[];\n\n /** Type exports discovered via `.d.ts` parsing */\n typeExports: ExportNode[];\n}\n\n/**\n * Parameters for bulk-updating packages that match a pattern.\n */\nexport interface ExportExtractorParams extends RunRepoRootParams {\n package: string;\n json?: string;\n}\n"]}
|
|
@@ -1,23 +1,48 @@
|
|
|
1
1
|
import type { DiffResult } from "simple-git";
|
|
2
|
+
/**
|
|
3
|
+
* Result of checking whether a path has changed since a given git reference.
|
|
4
|
+
*/
|
|
2
5
|
export interface GitChangedResult {
|
|
6
|
+
/** The file or directory path that was checked. */
|
|
3
7
|
path: string;
|
|
8
|
+
/** The git reference (e.g. commit SHA or tag) used as the baseline. */
|
|
4
9
|
sinceRef: string;
|
|
10
|
+
/** Whether any changes were detected. */
|
|
5
11
|
hasChanged: boolean;
|
|
12
|
+
/** List of individual file paths that changed. */
|
|
6
13
|
changedFiles: string[];
|
|
7
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The content of a single file that changed in a git diff.
|
|
17
|
+
*/
|
|
8
18
|
export interface GitChangedContent {
|
|
19
|
+
/** Absolute file path on disk. */
|
|
9
20
|
absFilePath: string;
|
|
21
|
+
/** Repository-relative file path. */
|
|
10
22
|
repoFilePath: string;
|
|
23
|
+
/** File content at the current revision, or `null` if the file was deleted. */
|
|
11
24
|
content: string | null;
|
|
12
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Result of retrieving file contents that changed since a given git reference.
|
|
28
|
+
*/
|
|
13
29
|
export interface GitChangedContentsResult {
|
|
30
|
+
/** The file or directory path that was checked. */
|
|
14
31
|
path: string;
|
|
32
|
+
/** The git reference used as the baseline. */
|
|
15
33
|
sinceRef: string;
|
|
34
|
+
/** The changed files with their content. */
|
|
16
35
|
files: GitChangedContent[];
|
|
17
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* A git commit identified by its hash, with optional diff information.
|
|
39
|
+
*/
|
|
18
40
|
export interface GitCommitHash {
|
|
41
|
+
/** The full SHA hash of the commit. */
|
|
19
42
|
hash: string;
|
|
43
|
+
/** The ISO-8601 date string of the commit. */
|
|
20
44
|
date: string;
|
|
45
|
+
/** Optional diff result associated with this commit. */
|
|
21
46
|
diff?: DiffResult;
|
|
22
47
|
}
|
|
23
48
|
//# sourceMappingURL=types.git.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.git.d.ts","sourceRoot":"","sources":["../../src/types/types.git.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"types.git.d.ts","sourceRoot":"","sources":["../../src/types/types.git.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.git.js","sourceRoot":"","sources":["../../src/types/types.git.ts"],"names":[],"mappings":"","sourcesContent":["import type { DiffResult } from \"simple-git\";\n\nexport interface GitChangedResult {\n path: string;\n sinceRef: string;\n hasChanged: boolean;\n changedFiles: string[];\n}\n\nexport interface GitChangedContent {\n absFilePath: string;\n repoFilePath: string;\n content: string | null;\n}\n\nexport interface GitChangedContentsResult {\n path: string;\n sinceRef: string;\n files: GitChangedContent[];\n}\n\nexport interface GitCommitHash {\n hash: string;\n date: string;\n diff?: DiffResult;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.git.js","sourceRoot":"","sources":["../../src/types/types.git.ts"],"names":[],"mappings":"","sourcesContent":["import type { DiffResult } from \"simple-git\";\n\n/**\n * Result of checking whether a path has changed since a given git reference.\n */\nexport interface GitChangedResult {\n /** The file or directory path that was checked. */\n path: string;\n /** The git reference (e.g. commit SHA or tag) used as the baseline. */\n sinceRef: string;\n /** Whether any changes were detected. */\n hasChanged: boolean;\n /** List of individual file paths that changed. */\n changedFiles: string[];\n}\n\n/**\n * The content of a single file that changed in a git diff.\n */\nexport interface GitChangedContent {\n /** Absolute file path on disk. */\n absFilePath: string;\n /** Repository-relative file path. */\n repoFilePath: string;\n /** File content at the current revision, or `null` if the file was deleted. */\n content: string | null;\n}\n\n/**\n * Result of retrieving file contents that changed since a given git reference.\n */\nexport interface GitChangedContentsResult {\n /** The file or directory path that was checked. */\n path: string;\n /** The git reference used as the baseline. */\n sinceRef: string;\n /** The changed files with their content. */\n files: GitChangedContent[];\n}\n\n/**\n * A git commit identified by its hash, with optional diff information.\n */\nexport interface GitCommitHash {\n /** The full SHA hash of the commit. */\n hash: string;\n /** The ISO-8601 date string of the commit. */\n date: string;\n /** Optional diff result associated with this commit. */\n diff?: DiffResult;\n}\n"]}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { RunRepoRootParams } from "./types.run.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parameters for the npm package publisher.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Currently an alias for {@link RunRepoRootParams}; extend this type
|
|
7
|
+
* to add publisher-specific options in the future.
|
|
8
|
+
*/
|
|
2
9
|
export type NpmPublisherParams = RunRepoRootParams;
|
|
3
10
|
//# sourceMappingURL=types.npm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.npm.d.ts","sourceRoot":"","sources":["../../src/types/types.npm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.npm.d.ts","sourceRoot":"","sources":["../../src/types/types.npm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.npm.js","sourceRoot":"","sources":["../../src/types/types.npm.ts"],"names":[],"mappings":"","sourcesContent":["import { RunRepoRootParams } from \"./types.run.js\";\n\nexport type NpmPublisherParams = RunRepoRootParams;\n"]}
|
|
1
|
+
{"version":3,"file":"types.npm.js","sourceRoot":"","sources":["../../src/types/types.npm.ts"],"names":[],"mappings":"","sourcesContent":["import { RunRepoRootParams } from \"./types.run.js\";\n\n/**\n * Parameters for the npm package publisher.\n *\n * @remarks\n * Currently an alias for {@link RunRepoRootParams}; extend this type\n * to add publisher-specific options in the future.\n */\nexport type NpmPublisherParams = RunRepoRootParams;\n"]}
|
package/dist/types/types.os.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about the current operating-system environment.
|
|
3
|
+
*/
|
|
1
4
|
export interface OSInfo {
|
|
5
|
+
/** Absolute path to the current user's home directory. */
|
|
2
6
|
homedir: string;
|
|
7
|
+
/** The login name of the current user. */
|
|
3
8
|
username: string;
|
|
9
|
+
/** The Node.js platform identifier (e.g. `"linux"`, `"darwin"`, `"win32"`). */
|
|
4
10
|
platform: NodeJS.Platform;
|
|
11
|
+
/** Absolute path to the application configuration directory. */
|
|
5
12
|
configDir: string;
|
|
13
|
+
/** Whether the environment is running under Windows Subsystem for Linux. */
|
|
6
14
|
isWSL?: boolean;
|
|
7
15
|
}
|
|
8
16
|
//# sourceMappingURL=types.os.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.os.d.ts","sourceRoot":"","sources":["../../src/types/types.os.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"types.os.d.ts","sourceRoot":"","sources":["../../src/types/types.os.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.os.js","sourceRoot":"","sources":["../../src/types/types.os.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"types.os.js","sourceRoot":"","sources":["../../src/types/types.os.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Information about the current operating-system environment.\n */\nexport interface OSInfo {\n /** Absolute path to the current user's home directory. */\n homedir: string;\n /** The login name of the current user. */\n username: string;\n /** The Node.js platform identifier (e.g. `\"linux\"`, `\"darwin\"`, `\"win32\"`). */\n platform: NodeJS.Platform;\n /** Absolute path to the application configuration directory. */\n configDir: string;\n /** Whether the environment is running under Windows Subsystem for Linux. */\n isWSL?: boolean;\n}\n"]}
|
|
@@ -1,37 +1,85 @@
|
|
|
1
1
|
import type { Pkg } from "../pkg/Pkg.js";
|
|
2
2
|
import { RunRepoRootParams } from "./types.run.js";
|
|
3
|
+
/**
|
|
4
|
+
* A parsed semantic version split into its numeric components.
|
|
5
|
+
*/
|
|
3
6
|
export interface PackageVersion {
|
|
7
|
+
/** The major version number. */
|
|
4
8
|
major: number;
|
|
9
|
+
/** The minor version number. */
|
|
5
10
|
minor: number;
|
|
11
|
+
/** The patch version number. */
|
|
6
12
|
patch: number;
|
|
13
|
+
/** An optional prefix such as `"^"` or `"~"`, or `null` if none. */
|
|
7
14
|
prefix: string | null;
|
|
8
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* A minimal representation of a `package.json` file.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Contains the most commonly accessed fields and allows arbitrary
|
|
21
|
+
* additional fields via the index signature.
|
|
22
|
+
*/
|
|
9
23
|
export interface PackageJson {
|
|
24
|
+
/** The package name as published to npm. */
|
|
10
25
|
name: string;
|
|
26
|
+
/** Whether the package is marked as private (not publishable). */
|
|
11
27
|
private?: boolean;
|
|
28
|
+
/** The current version string (semver). */
|
|
12
29
|
version: string;
|
|
30
|
+
/** The `exports` field mapping entry points to file paths. */
|
|
13
31
|
exports?: Record<string, string>;
|
|
32
|
+
/** Runtime dependency map (`name → version range`). */
|
|
14
33
|
dependencies?: Record<string, string>;
|
|
34
|
+
/** Development dependency map (`name → version range`). */
|
|
15
35
|
devDependencies?: Record<string, string>;
|
|
36
|
+
/** Peer dependency map (`name → version range`). */
|
|
16
37
|
peerDependencies?: Record<string, string>;
|
|
38
|
+
/** Any other `package.json` fields. */
|
|
17
39
|
[key: string]: unknown;
|
|
18
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Describes a dependency mapping between two packages in a workspace.
|
|
43
|
+
*/
|
|
19
44
|
export interface MapEntry {
|
|
45
|
+
/** The package that declares the dependency. */
|
|
20
46
|
fromPkg: Pkg;
|
|
47
|
+
/** The package that is depended upon. */
|
|
21
48
|
toPkg: Pkg;
|
|
49
|
+
/** The relative file-system path from the source to the target package. */
|
|
22
50
|
relPath: string;
|
|
23
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Flags indicating which semver component to bump.
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* At most one flag should be `true`. If none are set, the default
|
|
57
|
+
* bump behavior of the consumer applies.
|
|
58
|
+
*/
|
|
24
59
|
export interface BumpParams {
|
|
60
|
+
/** Bump the major version. */
|
|
25
61
|
major?: boolean;
|
|
62
|
+
/** Bump the minor version. */
|
|
26
63
|
minor?: boolean;
|
|
64
|
+
/** Bump the patch version. */
|
|
27
65
|
patch?: boolean;
|
|
28
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Parameters for synchronizing package versions across a workspace.
|
|
69
|
+
*/
|
|
29
70
|
export interface SyncPkgVersionParams extends RunRepoRootParams {
|
|
71
|
+
/** Optional bump configuration controlling which semver component to increment. */
|
|
30
72
|
bump?: BumpParams;
|
|
73
|
+
/** When `true`, skip version bumping entirely. */
|
|
31
74
|
noBump?: boolean;
|
|
75
|
+
/** When `true`, skip creating a git tag after the version sync. */
|
|
32
76
|
noTag?: boolean;
|
|
33
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Parameters for bulk-updating packages that match a pattern.
|
|
80
|
+
*/
|
|
34
81
|
export interface UpdatePackagesParams extends RunRepoRootParams {
|
|
82
|
+
/** Glob pattern used to select packages to update. */
|
|
35
83
|
pattern: string;
|
|
36
84
|
}
|
|
37
85
|
//# sourceMappingURL=types.package.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.package.d.ts","sourceRoot":"","sources":["../../src/types/types.package.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AASD,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"types.package.d.ts","sourceRoot":"","sources":["../../src/types/types.package.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,uCAAuC;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AASD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,gDAAgD;IAChD,OAAO,EAAE,GAAG,CAAC;IACb,yCAAyC;IACzC,KAAK,EAAE,GAAG,CAAC;IACX,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,mFAAmF;IACnF,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,kDAAkD;IAClD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.package.js","sourceRoot":"","sources":["../../src/types/types.package.ts"],"names":[],"mappings":"","sourcesContent":["import type { Pkg } from \"../pkg/Pkg.js\";\nimport { RunRepoRootParams } from \"./types.run.js\";\n\nexport interface PackageVersion {\n major: number;\n minor: number;\n patch: number;\n prefix: string | null;\n}\n\nexport interface PackageJson {\n name: string;\n private?: boolean;\n version: string;\n exports?: Record<string, string>;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n [key: string]: unknown;\n}\n\n// export interface PackageEntry {\n// jsonPath: string;\n// repoPath: string | null;\n// content: PackageJson;\n// modified: boolean;\n// }\n\nexport interface MapEntry {\n fromPkg: Pkg;\n toPkg: Pkg;\n relPath: string;\n}\n\nexport interface BumpParams {\n major?: boolean;\n minor?: boolean;\n patch?: boolean;\n}\n\nexport interface SyncPkgVersionParams extends RunRepoRootParams {\n bump?: BumpParams;\n noBump?: boolean;\n noTag?: boolean;\n}\n\nexport interface UpdatePackagesParams extends RunRepoRootParams {\n pattern: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.package.js","sourceRoot":"","sources":["../../src/types/types.package.ts"],"names":[],"mappings":"","sourcesContent":["import type { Pkg } from \"../pkg/Pkg.js\";\nimport { RunRepoRootParams } from \"./types.run.js\";\n\n/**\n * A parsed semantic version split into its numeric components.\n */\nexport interface PackageVersion {\n /** The major version number. */\n major: number;\n /** The minor version number. */\n minor: number;\n /** The patch version number. */\n patch: number;\n /** An optional prefix such as `\"^\"` or `\"~\"`, or `null` if none. */\n prefix: string | null;\n}\n\n/**\n * A minimal representation of a `package.json` file.\n *\n * @remarks\n * Contains the most commonly accessed fields and allows arbitrary\n * additional fields via the index signature.\n */\nexport interface PackageJson {\n /** The package name as published to npm. */\n name: string;\n /** Whether the package is marked as private (not publishable). */\n private?: boolean;\n /** The current version string (semver). */\n version: string;\n /** The `exports` field mapping entry points to file paths. */\n exports?: Record<string, string>;\n /** Runtime dependency map (`name → version range`). */\n dependencies?: Record<string, string>;\n /** Development dependency map (`name → version range`). */\n devDependencies?: Record<string, string>;\n /** Peer dependency map (`name → version range`). */\n peerDependencies?: Record<string, string>;\n /** Any other `package.json` fields. */\n [key: string]: unknown;\n}\n\n// export interface PackageEntry {\n// jsonPath: string;\n// repoPath: string | null;\n// content: PackageJson;\n// modified: boolean;\n// }\n\n/**\n * Describes a dependency mapping between two packages in a workspace.\n */\nexport interface MapEntry {\n /** The package that declares the dependency. */\n fromPkg: Pkg;\n /** The package that is depended upon. */\n toPkg: Pkg;\n /** The relative file-system path from the source to the target package. */\n relPath: string;\n}\n\n/**\n * Flags indicating which semver component to bump.\n *\n * @remarks\n * At most one flag should be `true`. If none are set, the default\n * bump behavior of the consumer applies.\n */\nexport interface BumpParams {\n /** Bump the major version. */\n major?: boolean;\n /** Bump the minor version. */\n minor?: boolean;\n /** Bump the patch version. */\n patch?: boolean;\n}\n\n/**\n * Parameters for synchronizing package versions across a workspace.\n */\nexport interface SyncPkgVersionParams extends RunRepoRootParams {\n /** Optional bump configuration controlling which semver component to increment. */\n bump?: BumpParams;\n /** When `true`, skip version bumping entirely. */\n noBump?: boolean;\n /** When `true`, skip creating a git tag after the version sync. */\n noTag?: boolean;\n}\n\n/**\n * Parameters for bulk-updating packages that match a pattern.\n */\nexport interface UpdatePackagesParams extends RunRepoRootParams {\n /** Glob pattern used to select packages to update. */\n pattern: string;\n}\n"]}
|