Skip to content

Commit 7ef2850

Browse files
committed
feat: add back target-org for single component
1 parent ce1f9b6 commit 7ef2850

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

command-snapshot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"alias": [],
1212
"command": "lightning:dev:component",
1313
"flagAliases": [],
14-
"flagChars": ["n"],
15-
"flags": ["flags-dir", "json", "name"],
14+
"flagChars": ["n", "o"],
15+
"flags": ["flags-dir", "json", "name", "target-org"],
1616
"plugin": "@salesforce/plugin-lightning-dev"
1717
},
1818
{

messages/lightning.dev.component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# summary
22

3-
Preview LWC component in insolation.
3+
Preview LWC components in isolation.
44

55
# description
66

src/commands/lightning/dev/component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export default class LightningDevComponent extends SfCommand<LightningDevCompone
2828
char: 'n',
2929
required: false,
3030
}),
31+
// TODO should this be required or optional?
32+
// We don't technically need this if your components are simple / don't need any data from your org
33+
'target-org': Flags.requiredOrg(),
3134
};
3235

3336
public async run(): Promise<LightningDevComponentResult> {

0 commit comments

Comments
 (0)