Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no such file or directory, open '/package.json' #36

Open
hushaudio opened this issue May 13, 2020 · 0 comments
Open

no such file or directory, open '/package.json' #36

hushaudio opened this issue May 13, 2020 · 0 comments

Comments

@hushaudio
Copy link

hushaudio commented May 13, 2020

I'm running ignite on OSX Catalina. I've run into an issue where it seems that the file path is wrong on a line of code located in: ignite/dist/ignite.js:132:54

function getAuthor(pkgJson) {
  const rootJson = pkgJson || JSON.parse(_fs.default.readFileSync(`${(0, _rootPath.default)()}/package.json`));
  let author = rootJson ? rootJson.author : {};

  if (typeof author === 'string') {
    // Stolen from https://stackoverflow.com/a/14011481
    const regexParseMatch = author.match(/(?:"?([^"]*)"?\s)?(?:<?(.+@[^>]+)>?)/);

    if (regexParseMatch) {
      author = {
        name: regexParseMatch[1],
        email: regexParseMatch[2]
      };
    }
  }

  return author;
}

Any thoughts or suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant