Skip to content

Commit

Permalink
check global bin after initializing logger
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 20, 2019
1 parent 236226d commit dbf8fde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ export class Project {
checkedGlobalBin: boolean;

constructor (projectPath: string, options: ProjectConfiguration) {
if (projectPath === JSPM_GLOBAL_PATH)
this.checkGlobalBin();
this.projectPath = projectPath;

if (!hasGit)
Expand All @@ -160,6 +158,9 @@ export class Project {
this.cli = config.cli;
this.log = this.cli ? new CLILogger() : new APILogger();

if (projectPath === JSPM_GLOBAL_PATH)
this.checkGlobalBin();

// if (process.env.globalJspm === 'true')
// this.log.warn(`Running jspm globally, it is advisable to locally install jspm via ${bold(`npm install jspm --save-dev`)}.`);

Expand Down

0 comments on commit dbf8fde

Please sign in to comment.