INNER CODE UNIT · TypeScript

_toErrorMessage

jscutlery/semver · packages/semver/src/executors/version/index.ts:227

function _toErrorMessage(error: any): string {
  return error.stack ?? error.message ?? error.toString();
}

function _normalizeOptions(options: VersionBuilderSchema) {
  return {
    ...options,
    push: options.push as boolean,
    verifyNpmAuth: options.verifyNpmAuth as boolean,
    enforceAtomicPush: options.enforceAtomicPush as boolean,
    remote: options.remote as string,
    dryRun: options.dryRun as boolean,
    trackDeps: options.trackDeps as boolean,
    baseBranch: options.baseBranch as string,
    noVerify: options.noVerify as boolean,
    syncVersions: options.syncVersions as boolean,
    skipRootChangelog: options.skipRootChangelog as boolean,
    skipProjectChangelog: options.skipProjectChangelog as boolean,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…