diff --git a/packages/js/src/generators/release-version/release-version.ts b/packages/js/src/generators/release-version/release-version.ts index c55c67c752..967c10af79 100644 --- a/packages/js/src/generators/release-version/release-version.ts +++ b/packages/js/src/generators/release-version/release-version.ts @@ -1000,7 +1000,7 @@ To fix this you will either need to add a package.json file at that location, or // Return the version data so that it can be leveraged by the overall version command return { data: versionData, - callback: async (tree, opts) => { + callback: async (tree, { generatorOptions, ...opts }) => { const changedFiles: string[] = []; const deletedFiles: string[] = []; @@ -1013,6 +1013,7 @@ To fix this you will either need to add a package.json file at that location, or ...(await updateLockFile(cwd, { ...opts, useLegacyVersioning: true, + options: generatorOptions, })) ); return { changedFiles, deletedFiles }; diff --git a/packages/js/src/release/version-actions.ts b/packages/js/src/release/version-actions.ts index b2be1ce3ab..9b4d8f2c7d 100644 --- a/packages/js/src/release/version-actions.ts +++ b/packages/js/src/release/version-actions.ts @@ -17,7 +17,10 @@ import chalk = require('chalk'); export const afterAllProjectsVersioned: AfterAllProjectsVersioned = async ( cwd: string, - opts: { + { + rootVersionActionsOptions, + ...opts + }: { dryRun?: boolean; verbose?: boolean; rootVersionActionsOptions?: Record; @@ -27,6 +30,7 @@ export const afterAllProjectsVersioned: AfterAllProjectsVersioned = async ( changedFiles: await updateLockFile(cwd, { ...opts, useLegacyVersioning: false, + options: rootVersionActionsOptions, }), deletedFiles: [], };