Skip to content

Commit

Permalink
fix(core): import to let users know that root deps may need to be imp…
Browse files Browse the repository at this point in the history
…orted
  • Loading branch information
jaysoo committed Aug 29, 2024
1 parent ef19c0f commit b3a6b9b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/nx/src/command-line/import/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,18 @@ export async function importHandler(options: ImportOptions) {

await warnOnMissingWorkspacesEntry(packageManager, pmc, relativeDestination);

// When only a subdirectory is imported, there might be devDependencies in the root package.json file
// that needs to be ported over as well.
if (ref) {
output.log({
title: `Check root dependencies`,
bodyLines: [
`"dependencies" and "devDependencies" are not imported from the source repository (${sourceRemoteUrl}).`,
`You may need to add some of those dependencies to this workspace in order to run tasks successfully.`,
],
});
}

output.log({
title: `Merging these changes into ${getBaseRef(nxJson)}`,
bodyLines: [
Expand Down

0 comments on commit b3a6b9b

Please sign in to comment.