From 299ae7fc67d81d7b102db6aa0ef43a1da2aea9ba Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 15 Dec 2023 20:47:20 -0700 Subject: [PATCH] Debug options --- packages/changesets-changelog/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/changesets-changelog/index.js b/packages/changesets-changelog/index.js index fef27ec..7e274a2 100644 --- a/packages/changesets-changelog/index.js +++ b/packages/changesets-changelog/index.js @@ -13,7 +13,6 @@ config() * @param {Record | null} options */ function validateOptions(options) { - console.log('OPTIONS:', options) if (!options || !options.repo) { throw new Error( 'Please provide a repo to this changelog generator like this:\n"changelog": ["@zazen/changesets-changelog", { "repo": "org/repo" }]', @@ -24,7 +23,11 @@ function validateOptions(options) { /** @type {import('@changesets/types').ChangelogFunctions} */ const changelogFunctions = { async getDependencyReleaseLine(changesets, dependenciesUpdated, options) { + console.log('DEP CHANGE:', changesets) + console.log('DEP OPTIONS:', options) + validateOptions(options) + if (dependenciesUpdated.length === 0) return '' let changesetCommits = await Promise.all( @@ -49,6 +52,9 @@ const changelogFunctions = { }, async getReleaseLine(changeset, options) { + console.log('CHANGE:', changeset) + console.log('OPTIONS:', options) + validateOptions(options) let [repoOwner] = options.repo.split('/')