-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmod.ts
More file actions
98 lines (92 loc) · 2.13 KB
/
mod.ts
File metadata and controls
98 lines (92 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Copyright 2023-present Eser Ozvataf and other contributors. All rights reserved. Apache-2.0 license.
/**
* Codebase management utilities for workspace discovery, git operations,
* and package configuration validation.
*
* @example
* ```typescript
* import * as codebase from "@eserstack/codebase";
*
* // Git operations
* const commits = await codebase.getCommits("HEAD~5..HEAD");
*
* // Workspace discovery
* const packages = await codebase.discoverPackages(".");
* ```
*
* @module
*/
// Library APIs — safe to re-export (no name collisions)
export type { Commit, CommitUser } from "./git.ts";
export {
checkout,
checkoutPrevious,
commit,
createAndCheckoutBranch,
createTag,
getCommitsBetween,
getCommitsSinceDate,
getCurrentBranch,
getLatestTag,
push,
pushTag,
stageAll,
} from "./git.ts";
export type {
ConfigFileType,
FieldMapping,
FieldOrigin,
LoadOptions,
PackageConfig,
PackageFieldName,
RawConfigFile,
TrackedField,
UpdateOptions,
UpdateResult,
WorkspaceModule,
} from "./package/mod.ts";
export {
baseDirProp,
CONFIG_FILE_PRIORITY,
ConfigFileTypes,
DEFAULT_FIELD_MAPPINGS,
getBaseDir,
getFilesWithField,
getModule,
getUpdateTargets,
getWorkspaceModules,
load,
loadPackageConfig,
PackageLoadError,
PackageUpdateError,
syncField,
tryLoad,
updateField,
updateFields,
updateVersion,
} from "./package/mod.ts";
export type { DiscoveredPackage } from "./workspace-discovery.ts";
export {
discoverPackages,
extractEntrypoints,
getPackageFiles,
getWorkspace,
resolveModulePath,
} from "./workspace-discovery.ts";
export type {
DirectiveAnalysisOptions,
DirectiveMatch,
DirectiveName,
} from "./directive-analysis.ts";
export {
analyzeClientComponents,
analyzeDirectives,
analyzeServerActions,
containsDirective,
DIRECTIVES,
extractExports,
hasDirective,
} from "./directive-analysis.ts";
// CLI scripts are accessed via their own entry points in deno.json exports,
// not through this barrel. Each exports a `main` function which would collide.
// Import directly: @eserstack/codebase/validate-circular-deps, @eserstack/codebase/versions, etc.