question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any plans to rename cli?

See original GitHub issue

Hi there

I was wondering if it would be considered to update the cli to learna-lite in a future version, as opposed to the two ws-* commands? The reasoning behind this would be for ease of development, where developers familiar with lerna could easily recognise the use of this project as lerna like commands, whereas ws-* is not familiar

I’m submitting a Feature request

Motivation / Use Case

Ease of migration and familiarity for developers

Expected Behavior

ws-roller version - > lerna-lite version etc

Other Information

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ghiscodingcommented, Apr 27, 2022

Alternatively, have you looked at making a command runner as part of core that understands version|publish|run as commands and routes them to individual clis as needed?

So e.g., lerna-lite run would look for @lerna-lite/run installed in the node_modules (local or global) and would invoke it if found, otherwise print a warning asking users to install the package

If you know how to do that and keep the run command optional, I’d be happy to get a PR on this, I personally never created a CLI code before creating this project and there are sections of the original Lerna CLI that I don’t fully understand how it all work.

I’m currently mostly focused on adding most of Lerna’s unit tests as much as possible so that we can add features without stressing too much.

Also if anyone think they have a better approach/code with certain things and it makes more sense then go ahead with PRs. My main goal was to replace Lerna in my own monorepo with something that was smaller which doesn’t have too much out of date dependencies. However, the only thing that I really wish to keep separate and optional is the run command.

2reactions
ghiscodingcommented, Mar 15, 2022

After few days working on this, the feature is in, so hopefully this will clear the last hurdle for people who want to migrate from Lerna to Lerna-Lite. I basically copied over the original Lerna CLI and even used the exact same name so it’s a full drop-in replacement, just swap Lerna to Lerna-Lite in your dependencies and you’ll be good to go. See the new release and I decided to make it a major as 1.0.0

I also implemented what @mrchief suggested so that I could keep run as an optional package and I just tried it in my own repo to not install it and as expected I get the error that was suggested.

So hopefully everyone can enjoy it and I can close the subject and move on to something else 😉

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

jhotmann/node-rename-cli - GitHub
GitHub - jhotmann/node-rename-cli: A tool for renaming files quickly, ... prompt when new file name already exists and create any missing directories
Read more >
How to Use the rename Command on Linux - How-To Geek
The command does a fine a job, and it is found on all Linux ... We want to rename them at the command...
Read more >
How to Rename Files In Linux Using the Command Line
Every Linux user should learn the fundamental terminal command lines. Here's how you can rename files on any Linux Distribution.
Read more >
Renaming Apps from the CLI - Heroku Dev Center
You can rename an app at any time with the heroku apps:rename command. For example, to rename an app named “oldname” to “newname”, ......
Read more >
rename-cli - npm
A command line utility for renaming files. Latest version: 6.2.1, ... There are no other projects in the npm registry using rename-cli.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found