Skip to content

Commit ebcffda

Browse files
heyimalexandriijas
authored andcommitted
Add current version and bin location to --info output (#8168)
Make the --info subcommand outuput the current version information and the location of the file being run. Our issue template tells users to provide the output of --info, so having the current version is incredibly helpful, especially since it doesn't necessarily match the globally installed version that envinfo outputs. Knowing the location helps us determine whether the running bin is globally installed or in the local node_modules.
1 parent 8d1a4f2 commit ebcffda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/create-react-app/createReactApp.js

+4
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ const program = new commander.Command(packageJson.name)
156156

157157
if (program.info) {
158158
console.log(chalk.bold('\nEnvironment Info:'));
159+
console.log(
160+
`\n current version of ${packageJson.name}: ${packageJson.version}`
161+
);
162+
console.log(` running from ${__dirname}`);
159163
return envinfo
160164
.run(
161165
{

0 commit comments

Comments
 (0)