Skip to content

Commit 4d9ee36

Browse files
committed
fix: revert sf ui-bundle generate back to sf webapp generate in NUT helpers
The scaffolding command is provided by plugin-templates as `sf webapp generate`, not by this plugin. It should not have been renamed as part of the ui-bundle rename.
1 parent 633016c commit 4d9ee36

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/commands/ui-bundle/helpers/webappProjectUtils.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ export function createProject(session: TestSession, name: string): string {
9898
}
9999

100100
/**
101-
* Run `sf project generate` then `sf ui-bundle generate --name <webAppName>` inside
101+
* Run `sf project generate` then `sf webapp generate --name <webAppName>` inside
102102
* the project. Returns the absolute path to the generated project root.
103+
*
104+
* Note: `sf webapp generate` is provided by plugin-templates, not this plugin.
103105
*/
104106
export function createProjectWithWebapp(session: TestSession, projectName: string, webAppName: string): string {
105107
const projectDir = createProject(session, projectName);
106-
execSync(`sf ui-bundle generate --name ${webAppName}`, {
108+
execSync(`sf webapp generate --name ${webAppName}`, {
107109
cwd: projectDir,
108110
stdio: 'pipe',
109111
env: { ...process.env, HOME: REAL_HOME, USERPROFILE: REAL_HOME },
@@ -122,7 +124,7 @@ export function createProjectWithMultipleWebapps(
122124
): string {
123125
const projectDir = createProject(session, projectName);
124126
for (const name of webAppNames) {
125-
execSync(`sf ui-bundle generate --name ${name}`, {
127+
execSync(`sf webapp generate --name ${name}`, {
126128
cwd: projectDir,
127129
stdio: 'pipe',
128130
env: { ...process.env, HOME: REAL_HOME, USERPROFILE: REAL_HOME },

0 commit comments

Comments
 (0)