Skip to content

Commit 7513ba5

Browse files
committed
fix(core): ensure pattern overrides are read
1 parent 2e87578 commit 7513ba5

6 files changed

Lines changed: 6 additions & 16 deletions

File tree

src/bin-fix-mismatches.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { setVersionsToNewestMismatch } from './manifests';
1010
let packages: string[] = [];
1111

1212
program
13-
.command(`${FIX_MISMATCHES.command} ${FIX_MISMATCHES.args}`)
1413
.action((...args) => {
1514
packages = args.filter((arg) => arg && typeof arg === 'string');
1615
})

src/bin-format.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { format } from './manifests';
1010
let packages: string[] = [];
1111

1212
program
13-
.command(`${FORMAT.command} ${FORMAT.args}`)
1413
.action((...args) => {
1514
packages = args.filter((arg) => arg && typeof arg === 'string');
1615
})

src/bin-list-mismatches.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { getMismatchedVersions } from './manifests';
99
let packages: string[] = [];
1010

1111
program
12-
.command(`${LIST_MISMATCHES.command} ${LIST_MISMATCHES.args}`)
1312
.action((...args) => {
1413
packages = args.filter((arg) => arg && typeof arg === 'string');
1514
})

src/bin-list.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { getVersions } from './manifests';
99
let packages: string[] = [];
1010

1111
program
12-
.command(`${LIST.command} ${LIST.args}`)
1312
.action((...args) => {
1413
packages = args.filter((arg) => arg && typeof arg === 'string');
1514
})

src/bin-set-semver-ranges.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { setVersionRange } from './manifests';
1010
let packages: string[] = [];
1111

1212
program
13-
.command(`${SET_SEMVER_RANGES.command} ${SET_SEMVER_RANGES.args}`)
1413
.option(OPTION_SEMVER_RANGE.spec, OPTION_SEMVER_RANGE.description)
1514
.action((...args) => {
1615
packages = args.filter((arg) => arg && typeof arg === 'string');

src/constants.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,31 @@ const PACKAGES_PATTERNS = [PACKAGES_PATTERN];
3535
const ALL_PATTERNS = [MONOREPO_PATTERN, PACKAGES_PATTERN];
3636

3737
export const FIX_MISMATCHES = {
38-
args: '[packages...]',
39-
command: 'fix-mismatches',
38+
command: 'fix-mismatches [packages...]',
4039
defaultPatterns: PACKAGES_PATTERNS,
4140
description: 'set dependencies used with different versions to the same version'
4241
};
4342

4443
export const FORMAT = {
45-
args: '[packages...]',
46-
command: 'format',
44+
command: 'format [packages...]',
4745
defaultPatterns: ALL_PATTERNS,
4846
description: 'sort and shorten properties according to a convention'
4947
};
5048

5149
export const LIST = {
52-
args: '[packages...]',
53-
command: 'list',
54-
defaultPatterns: PACKAGES_PATTERNS,
50+
command: 'list [packages...]',
51+
defaultPatterns: ALL_PATTERNS,
5552
description: 'list every dependency used in your packages'
5653
};
5754

5855
export const LIST_MISMATCHES = {
59-
args: '[packages...]',
60-
command: 'list-mismatches',
56+
command: 'list-mismatches [packages...]',
6157
defaultPatterns: PACKAGES_PATTERNS,
6258
description: 'list every dependency used with different versions in your packages'
6359
};
6460

6561
export const SET_SEMVER_RANGES = {
66-
args: '[packages...]',
67-
command: 'set-semver-ranges',
62+
command: 'set-semver-ranges [packages...]',
6863
defaultPatterns: ALL_PATTERNS,
6964
description: 'set semver ranges to the given format'
7065
};

0 commit comments

Comments
 (0)