Skip to content

Commit 629e6e4

Browse files
committed
chore: cleanup
1 parent 314438f commit 629e6e4

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

command-snapshot.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,5 @@
66
"flagChars": ["i", "n", "o", "t"],
77
"flags": ["device-id", "device-type", "flags-dir", "name", "target-org"],
88
"plugin": "@salesforce/plugin-lightning-dev"
9-
},
10-
{
11-
"alias": [],
12-
"command": "lightning:dev:component",
13-
"flagAliases": [],
14-
"flagChars": ["c", "n", "o"],
15-
"flags": ["client-select", "flags-dir", "json", "name", "target-org"],
16-
"plugin": "@salesforce/plugin-lightning-dev"
17-
},
18-
{
19-
"alias": [],
20-
"command": "lightning:dev:site",
21-
"flagAliases": [],
22-
"flagChars": ["l", "n", "o"],
23-
"flags": ["flags-dir", "get-latest", "guest", "name", "target-org"],
24-
"plugin": "@salesforce/plugin-lightning-dev"
259
}
2610
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
"exports": "./lib/index.js",
260260
"type": "module",
261261
"volta": {
262-
"node": "20.19.3",
262+
"node": "20.11.0",
263263
"yarn": "1.22.22"
264264
}
265265
}

src/commands/lightning/dev/component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ export default class LightningDevComponent extends SfCommand<void> {
3232
char: 'c',
3333
default: false,
3434
}),
35-
port: Flags.integer({
36-
summary: 'Port number for the development server',
37-
char: 'p',
38-
default: 3000,
39-
}),
35+
4036
// TODO should this be required or optional?
4137
// We don't technically need this if your components are simple / don't need any data from your org
4238
'target-org': Flags.optionalOrg(),
@@ -101,7 +97,7 @@ export default class LightningDevComponent extends SfCommand<void> {
10197

10298
const dirname = path.dirname(url.fileURLToPath(import.meta.url));
10399
const rootDir = path.resolve(dirname, '../../../..');
104-
const port = flags.port;
100+
const port = parseInt(process.env.PORT ?? '3000', 10);
105101

106102
await cmpDev({
107103
rootDir,

src/shared/promptUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
import select from '@inquirer/select';
7+
import { select } from '@inquirer/prompts';
88
import { confirm } from '@inquirer/prompts';
99
import { Connection, Logger, Messages } from '@salesforce/core';
1010
import {

0 commit comments

Comments
 (0)