Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fix: handle version for frameworks which are not detected by npm package #842

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

danez
Copy link
Contributor

@danez danez commented Nov 18, 2022

Summary

This handles frameworks that are not detected by npm package correctly. When the framework info has no package name we simply do not attempt to detect the version.

On the way I also fixed some types, changed from chdir() to use the cwd option of find-up and added code that handles rejected promises from Promise.allSettled to not swallow errors as we do right now.

Fixes netlify/cli#5221

@danez danez self-assigned this Nov 18, 2022
@netlify
Copy link

netlify bot commented Nov 18, 2022

Deploy Preview for framework-info ready!

Name Link
🔨 Latest commit ede1830
🔍 Latest deploy log https://app.netlify.com/sites/framework-info/deploys/637ba3d71b78220008b8a9a2
😎 Deploy Preview https://deploy-preview-842--framework-info.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Nov 18, 2022
Copy link

@sarahetter sarahetter left a comment

Choose a reason for hiding this comment

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

LGTM

@kodiakhq kodiakhq bot merged commit 5735d2e into main Nov 21, 2022
@kodiakhq kodiakhq bot deleted the version-fix branch November 21, 2022 16:16
@SteveALee
Copy link

Thank you. How can we tell when this lands in a published version of the CLI?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ntl dev fails in cli 12.1.1
3 participants