Skip to content

Commit 7f02963

Browse files
committed
chore: Reorder options by moving --package-lock-only to the top
Signed-off-by: Florian Schreiber <florian.schreiber@free-now.com>
1 parent 048700f commit 7f02963

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ $ yarn cyclonedx
6767
6868
━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6969
70+
--package-lock-only Only use the yarn.lock file for dependency information.
71+
No network calls will be made.
7072
--production,--prod Exclude development dependencies.
7173
(default: true if the NODE_ENV environment variable is set to "production", otherwise false)
7274
--gather-license-texts Search for license files in components and include them as license evidence.
7375
This feature is experimental.
74-
--package-lock-only Only use the yarn.lock file for dependency information.
75-
No network calls will be made.
7676
--short-PURLs Omit all qualifiers from PackageURLs.
7777
This causes information loss in trade-off shorter PURLs, which might improve ingesting these strings.
7878
--sv,--spec-version #0 Which version of CycloneDX to use.

src/commands.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export class MakeSbomCommand extends Command<CommandContext> {
7676
details: 'Recursively scan workspace dependencies and emits them as Software-Bill-of-Materials(SBOM) in CycloneDX format.'
7777
})
7878

79+
readonly packageLockOnly = Option.Boolean('--package-lock-only', false, {
80+
description: 'Only use the yarn.lock file for dependency information.\n'+
81+
'No network calls will be made.'
82+
})
83+
7984
/* mimic option from yarn.
8085
- see https://classic.yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-production-true-false
8186
- see https://yarnpkg.com/cli/workspaces/focus
@@ -90,10 +95,6 @@ export class MakeSbomCommand extends Command<CommandContext> {
9095
'This feature is experimental.'
9196
})
9297

93-
readonly packageLockOnly = Option.Boolean('--package-lock-only', false, {
94-
description: 'Only use the yarn.lock file for dependency information. No network calls will be made.'
95-
})
96-
9798
readonly shortPURLs = Option.Boolean('--short-PURLs', false, {
9899
description: 'Omit all qualifiers from PackageURLs.\n' +
99100
'This causes information loss in trade-off shorter PURLs, which might improve ingesting these strings.'

0 commit comments

Comments
 (0)