Skip to content

Commit

Permalink
chore(run): remove invalid lerna 6 links (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 13, 2022
1 parent 0c80252 commit d4a3618
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/run/src/__tests__/run-command.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ describe('RunCommand', () => {

const logMessages = loggingOutput('info');
expect(logMessages).toContain(
'Using the "ignore" option when nx.json has targetDefaults defined will exclude only tasks that are not determined to be required by Nx. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--ignore for details.'
'Using the "ignore" option when nx.json has targetDefaults defined will exclude only tasks that are not determined to be required by Nx.'
);
});

Expand Down Expand Up @@ -492,7 +492,7 @@ describe('RunCommand', () => {

const [logMessage] = loggingOutput('warn');
expect(logMessage).toContain(
'"parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details.'
'"parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined.'
);
expect(collectedOutput).toContain('package-1');
});
Expand All @@ -504,7 +504,7 @@ describe('RunCommand', () => {

const logMessages = loggingOutput('info');
expect(logMessages).toContain(
'Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details.'
'Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna.'
);
expect(collectedOutput).toContain('package-1');
});
Expand Down
6 changes: 3 additions & 3 deletions packages/run/src/run-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,21 +316,21 @@ export class RunCommand extends Command<RunCommandOption & FilterOptions> {
if (this.options.parallel || this.options.sort !== undefined) {
this.logger.warn(
this.name,
`"parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details.`
`"parallel", "sort", and "no-sort" are ignored when nx.json has targetDefaults defined.`
);
}

if (this.options.includeDependencies) {
this.logger.info(
this.name,
`Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details.`
`Using the "include-dependencies" option when nx.json has targetDefaults defined will include both task dependencies detected by Nx and project dependencies detected by Lerna.`
);
}

if (this.options.ignore) {
this.logger.info(
this.name,
`Using the "ignore" option when nx.json has targetDefaults defined will exclude only tasks that are not determined to be required by Nx. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--ignore for details.`
`Using the "ignore" option when nx.json has targetDefaults defined will exclude only tasks that are not determined to be required by Nx.`
);
}
} else {
Expand Down

0 comments on commit d4a3618

Please sign in to comment.