Skip to content

Commit

Permalink
fix(publish): should only warn when using --no-workspace-strict-match
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Aug 1, 2022
1 parent 7ac07a7 commit 37dd3e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/publish/src/__tests__/publish-command.spec.ts
Expand Up @@ -242,7 +242,6 @@ describe('PublishCommand', () => {
expect(logMessages).toMatchInlineSnapshot(`
Array [
"--graph-type=dependencies is deprecated and will be removed in the next major version of lerna-lite. If you have a use-case you feel requires it please open an issue to discuss: https://github.com/lerna/lerna/issues/new/choose",
"Providing --no-workspace-strict-match is deprecated and will be removed in future version, we will make \\"workspace:\\" protocol strict matching in every case.",
"we recommend using --sync-workspace-lock which will sync your lock file via your favorite npm client instead of relying on Lerna-Lite itself to update it.",
]
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/publish/src/publish-command.ts
Expand Up @@ -141,7 +141,7 @@ export class PublishCommand extends Command<PublishCommandOption> {
);
}

if (!this.options.workspaceStrictMatch) {
if (this.options.workspaceStrictMatch === false) {
this.logger.warn(
'deprecation',
'Providing --no-workspace-strict-match is deprecated and will be removed in future version, we will make "workspace:" protocol strict matching in every case.'
Expand Down

0 comments on commit 37dd3e7

Please sign in to comment.