Skip to content

Commit d3c1baa

Browse files
committed
Revert "fix: revert sf ui-bundle generate back to sf webapp generate in NUT helpers"
This reverts commit 4d9ee36.
1 parent 4d9ee36 commit d3c1baa

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

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

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

100100
/**
101-
* Run `sf project generate` then `sf webapp generate --name <webAppName>` inside
101+
* Run `sf project generate` then `sf ui-bundle 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.
105103
*/
106104
export function createProjectWithWebapp(session: TestSession, projectName: string, webAppName: string): string {
107105
const projectDir = createProject(session, projectName);
108-
execSync(`sf webapp generate --name ${webAppName}`, {
106+
execSync(`sf ui-bundle generate --name ${webAppName}`, {
109107
cwd: projectDir,
110108
stdio: 'pipe',
111109
env: { ...process.env, HOME: REAL_HOME, USERPROFILE: REAL_HOME },
@@ -124,7 +122,7 @@ export function createProjectWithMultipleWebapps(
124122
): string {
125123
const projectDir = createProject(session, projectName);
126124
for (const name of webAppNames) {
127-
execSync(`sf webapp generate --name ${name}`, {
125+
execSync(`sf ui-bundle generate --name ${name}`, {
128126
cwd: projectDir,
129127
stdio: 'pipe',
130128
env: { ...process.env, HOME: REAL_HOME, USERPROFILE: REAL_HOME },

0 commit comments

Comments
 (0)