Skip to content

Commit

Permalink
Update generateNWUI.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw authored and danstepanov committed Aug 20, 2024
1 parent d72d011 commit ac31270
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/src/utilities/generateNWUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ export async function generateNWUI(cliResults: CliResults, toolbox: GluegunToolb
const installFlag = cliResults.flags.noInstall ? '--no-install' : '';

if (process.env.NODE_ENV === 'development') {
// @TODO fix this to be @latest once --no-install and --yes are live on stable
toolbox.print.info(
`${runnerType} --yes nwui-cli@0.4.1-beta.1 add --yes ${installFlag} -d ${cliResults.projectName} ${finalComponents.join(' ')}`
`${runnerType} --yes nwui-cli@latest add --yes ${installFlag} -d ${cliResults.projectName} ${finalComponents.join(' ')}`
);
}

// @TODO fix this to be @latest once --no-install and --yes are live on stable
await runSystemCommand({
command: `${runnerType} --yes nwui-cli@0.4.1-beta.1 add --yes ${installFlag} -d ${cliResults.projectName} ${finalComponents.join(' ')}`,
command: `${runnerType} --yes nwui-cli@latest add --yes ${installFlag} -d ${cliResults.projectName} ${finalComponents.join(' ')}`,
errorMessage: 'Error adding nativewindui components',
toolbox,
stdio: ONLY_ERRORS,
Expand Down

0 comments on commit ac31270

Please sign in to comment.