Skip to content

Commit

Permalink
refactor: switch to optional chaining in custom filters and removing …
Browse files Browse the repository at this point in the history
…unnecessary escape character in logMessages.js (#1285)

Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
rishabhr4 and derberg authored Oct 9, 2024
1 parent 6872020 commit 8540832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/generator/lib/logMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const TEMPLATE_INSTALL_FLAG_MSG = 'because you passed --install flag';

const TEMPLATE_INSTALL_DISK_MSG = 'because the template cannot be found on disk';

const NODE_MODULES_INSTALL ='Remember that your local template must have its own node_modules installed first, \"npm install\" is not triggered by the generator.';
const NODE_MODULES_INSTALL = 'Remember that your local template must have its own node_modules installed first, "npm install" is not triggered by the generator.';

const NPM_INSTALL_TRIGGER = 'Installation of template located on disk technically means symlink creation betweed node_modules of the generator and template sources. Your local template must have its own node_modules, "npm install" is not triggered.';

Expand All @@ -19,7 +19,7 @@ function templateNotFound(templateName) {
}

function packageNotAvailable(packageDetails) {
if (packageDetails && packageDetails.pkgPath) {
if (packageDetails?.pkgPath) {
return `Unable to resolve template location at ${packageDetails.pkgPath}. Package is not available locally.`;
}

Expand Down

0 comments on commit 8540832

Please sign in to comment.