Skip to content

Commit

Permalink
hide project info in the summary <= rnv new
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaDiachenko committed Nov 1, 2023
1 parent 6150e0d commit 1afe378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const logSummary = (header = 'SUMMARY') => {
let str = printBoxStart(`${ICN_ROCKET} ${header} ${timeString}`, getCurrentCommand());

str += printIntoBox(`ReNative Version: ${_highlightColor(ctx.rnvVersion)}`);
if (ctx.files?.project?.package) {
if (ctx.files?.project?.package?.name && ctx.files?.project?.package?.version) {
str += printIntoBox(`Project Name ($package.name): ${_highlightColor(ctx.files.project.package.name)}`);
str += printIntoBox(
`Project Version ($package.version): ${_highlightColor(ctx.files.project.package.version)}`
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-core/src/tasks/task.rnv.new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ export const taskRnvNew = async (c: RnvContext) => {
config.platforms = platforms;
config.engines = engines;
config.defaults = defaults;
console.log(c.paths.project.config, ' =========> c.paths.project.config @@@@@');

writeFileSync(c.paths.project.config, config);

if (data.gitEnabled) {
Expand Down

0 comments on commit 1afe378

Please sign in to comment.