Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_promptCallback(props) {
const liferayVersion = props.liferayVersion;
this.appname = props.themeId;
this.fontAwesome = props.fontAwesome;
const devDependenciesToInsert = devDependencies.default;
if (liferayVersion !== '*') {
if (this.fontAwesome) {
const fontAwesomeVersion =
devDependencies.optional['liferay-font-awesome'];
devDependenciesToInsert[
'liferay-font-awesome'
] = fontAwesomeVersion;
}
this.devDependencies = JSON.stringify(
devDependenciesToInsert,
null,
2
)
.split(/\n\s*/)
.join('\n\t\t')
.replace('\t\t}', '\t}');
}
this.liferayVersion = liferayVersion;
this.themeName = props.themeName;