Skip to content

lb and lb4 are the same code? #10363

Answered by achrinza
bitxplora asked this question in Q&A
Feb 13, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Thanks for the clarification - Indeed @loopback/cli does provide both lb and lb4.

However, both point to the same file:

"bin": {
"lb": "bin/cli-main.js",
"lb4": "bin/cli-main.js"
},

We can verify this by running:

# blank output = no difference 
$ diff "$(which lb)" "$(which lb4)" 

Due to the way NPM installs CLI utilities, it will copy the same file twice to both lb and lb4.

This was added by @frbuceta in f7ad002. However I was not able to find a rationale for this change.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bitxplora
Comment options

@achrinza
Comment options

Answer selected by achrinza
@bitxplora
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants