Skip to content

[Niche case support] keeping 2 latest versions (latest & latest-1) in my package json file #31057

Discussion options

You must be logged in to vote

No its not possible.

But if you are open for a hacky one, here's something I tried as I thought autoReplaceStringTemplate could get this done.

Btw, its not strictly latest and latest-1 instead it updates the first version with latest version and for the second version it just updates it with the value of first version. Also, the formatting is not perfect so make sure to correct that afterwards.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Devinwong
Comment options

@Devinwong
Comment options

@RahulGautamSingh
Comment options

@Devinwong
Comment options

Answer selected by Devinwong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants