Skip to content

feat: add artifact assembler#7

Merged
nkskaare merged 1 commit intomainfrom
feat-artifact-assembly
Jan 26, 2026
Merged

feat: add artifact assembler#7
nkskaare merged 1 commit intomainfrom
feat-artifact-assembly

Conversation

@nkskaare
Copy link
Copy Markdown
Contributor

This pull request introduces a new artifact assembly system and improves version handling for Salesforce package artifacts. The main highlights are the addition of an ArtifactAssembler class to manage artifact packaging, enhancements to version normalization for compatibility with semver, and updates to dependencies to support these features.

Artifact Packaging and Management:

  • Added a new ArtifactAssembler class in artifact-assembler.ts that orchestrates the process of assembling, metadata generation, changelog creation (with a stub provider), zipping, manifest updating, and symlinking for package artifacts. This provides a structured and extensible way to generate and manage package artifacts.
  • Introduced a stub ChangelogProvider interface and implementation to allow for future extensibility in changelog generation.

Version Handling Improvements:

  • Added a normalizeVersion static method to VersionManager that converts Salesforce 4-part versions to semver-compatible formats and validates/coerces other version formats, improving reliability and compatibility.
  • Updated VersionTracker to use the new normalizeVersion method when setting new package versions, ensuring all versions are consistently formatted and valid.
  • Fixed a bug in VersionManager to ensure packageDirectories are always treated as arrays when updating project definitions.

Dependency Updates:

  • Added archiver and its type definitions to package.json to enable artifact zipping functionality. [1] [2]

Minor Fixes:

  • Corrected a log statement in ArtifactService to reference apiVersion instead of sourceVersion.

@nkskaare nkskaare merged commit 90e9177 into main Jan 26, 2026
0 of 6 checks passed
@nkskaare nkskaare deleted the feat-artifact-assembly branch January 26, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant