Skip to content

Commit

Permalink
updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Dec 21, 2023
1 parent 0d231dd commit 524babb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const DefaultWpDatabaseType: string = 'mysql'
*
* @type {string} defaultWpInstallLanguage - The default language for the WordPress install
*/
export const DefaultWpInstallLanguage: string = 'en_US'
export const DefaultWpInstallLanguage: string = 'English'

/**
* The default configuration object
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ getConfig(argv)
*/
const launcher = actions({ config, paths })

// DEBUG console.log(argv)

for (const key of Object.keys(argv)) {
// Skip the loop iteration when the key is '_' or '$0'
if (key === '_' || key === '$0') continue
Expand All @@ -39,7 +41,7 @@ getConfig(argv)
}
}
)
.catch((/** @type {Error} */ err) => console.error(err))
.catch((err: Error) => console.error(err))
.finally(() => {
/**
* That's it 🎉! We're done! let's print how long it took to run the script and exit with a success code.
Expand Down
1 change: 1 addition & 0 deletions src/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export async function getConfig(args: yargs.Argv<object>): Promise<WPMMconfig> {
console.log(
`⚠️ Cannot find any Wordpress files in the current folder and the template file ${PkgFileName} is missing.`
)

// Ask the user if they want to create a new WordPress installation
const { name, version, language } = await askForConfiguration()

Expand Down

0 comments on commit 524babb

Please sign in to comment.