@storm-software/git-tools
Version:
Tools for managing Git repositories within a Nx workspace.
76 lines (73 loc) • 1.89 kB
JavaScript
import {
COMMIT_TYPES,
DEFAULT_COMMIT_QUESTIONS
} from "./chunk-A4HFPO7F.js";
// src/release/config.ts
var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
questions: DEFAULT_COMMIT_QUESTIONS,
types: COMMIT_TYPES
};
var DEFAULT_RELEASE_GROUP_CONFIG = {
projectsRelationship: "independent",
releaseTagPattern: "{projectName}@{version}",
changelog: {
git: {
tag: true
},
createRelease: "github",
entryWhenNoChanges: false,
file: "{projectRoot}/CHANGELOG.md",
renderOptions: {
authors: false,
commitReferences: true,
versionTitleDate: true
}
},
version: {
groupPreVersionCommand: "pnpm build",
useLegacyVersioning: true,
currentVersionResolver: "git-tag",
specifierSource: "conventional-commits",
generator: "@storm-software/workspace-tools:release-version",
generatorOptions: {
currentVersionResolver: "git-tag",
specifierSource: "conventional-commits"
}
}
};
var DEFAULT_RELEASE_CONFIG = {
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
changelog: {
git: {
tag: true
},
automaticFromRef: true,
workspaceChangelog: false,
projectChangelogs: {
createRelease: "github",
entryWhenNoChanges: false,
file: "{projectRoot}/CHANGELOG.md",
renderOptions: {
authors: false,
commitReferences: true,
versionTitleDate: true
}
}
},
version: {
preVersionCommand: "pnpm build",
useLegacyVersioning: true,
currentVersionResolver: "git-tag",
specifierSource: "conventional-commits",
generator: "@storm-software/workspace-tools:release-version",
generatorOptions: {
currentVersionResolver: "git-tag",
specifierSource: "conventional-commits"
}
}
};
export {
DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
DEFAULT_RELEASE_GROUP_CONFIG,
DEFAULT_RELEASE_CONFIG
};