Skip to content

Conversation

@PierreDemailly
Copy link
Member

No description provided.

@PierreDemailly PierreDemailly requested a review from fraxken June 24, 2023 15:32
src/index.ts Outdated
Comment on lines 104 to 106
catch {
failed = true;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catch (error) {
  throw new Error("Invalid repository, cannot find it on GitHub or NPM registry", {
    cause: error
  });
}

You need to update the target to ES2022 in tsconfig.json

src/index.ts Outdated
// If the repository is not found, we try to retrieve it from the NPM registry
// i.e: if given repository is "@nodesecure/cli"
if (!resolveOnNpmRegistry) {
throw new Error("Invalid repository, cannot find it on GitHub");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add cause here!

@fraxken fraxken merged commit 0eb3cd6 into main Jun 24, 2023
@fraxken fraxken deleted the resolve-npm-option branch June 24, 2023 20:52
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

Successfully merging this pull request may close these issues.

3 participants