-
Notifications
You must be signed in to change notification settings - Fork 5
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
Detect if a package-lock.json
is present, and error out blocking everything if true
#69
Comments
What about simply adding |
That would make it behave strangely only on developers machines... |
You're right @caesarsol Should the big red message block the execution of the script in your opinion? Or just be a message like the "upgrade accurapp" one? I think it's safe to tell the user to just use yarn. I've already put the
|
I'd say ZERO TOLERANCE, because noone really reads the alert messages. |
We could also simply update that script to something similar to:
|
Is your feature request related to a problem? Please describe.
Sometimes for developers overlook, an
npm
command gets run in the repo and apackage-lock.json
gets created even if ayarn.lock
is already present.This creates problems in Netlify and other auto-deploy platforma, because they choose the tool depending on which files they find.
Describe the solution you'd like
Any
accurapp
command (start / build / lint) could check: ifpackage-lock.json
ANDyarn.lock
are present, block everything and alert with a big red flashy warning.Solution for the user: delete one of the two files (preferably the NPM one)
Thoughts?
The text was updated successfully, but these errors were encountered: