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.

node: dist-tag not recorded in package.json

See original GitHub issue

I’ve been using prereleases recently and versioning works great, but I noticed that when I set that property the publishConfig tag property does not get set. I imagine the --tag flag is maybe getting used in a release workflow, but if you’re not using workflows, it would be nice for the supplied dist-tag to be tracked in the package.json.

Edit: I had prerelease in my head, but what I really meant was the npmDistTag option. prerelease specifically handles version suffix, so I did not expect it to set the dist-tag. It is my expectation that npmDistTag should, however, set the dist tag in a way that leads to a release being tagged with that dist-tag.

Is there a good reason it’s not being tracked in the package.json?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dytyniukcommented, Sep 23, 2022

@mrgrain I’m not saying, that we cannot start and finalize the release process “in the Cloud”. I am going to find this out literally now with my team 😃

My sincere expectation is that once the Merge Request is merged into the main branch, the CI will take care of the release process 🤞

Even if that configuration is not built by projen, having a straightforward action plan would be already a huge gain.

0reactions
mrgraincommented, Sep 23, 2022

Although the projen is a kick-ass tool, TS/JS devs are taken away from their usual package managers (npm or yarn). Meaning they have to update .projenrc.js manually to have the package in their package.json. And even if they add a package via npm/yarn install, that will be gone after another npx projen run.

Yes that certainly is a trade-off. I could see a projen add <package> happen in future, but it’s blocked by #356

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm dist add not working · Issue #21 - GitHub
this is my command i keep trying to run and it won't work. npm dist-tag add test@1.0.1 latest here is the log: 0...
Read more >
package.json - npm Docs
This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just a...
Read more >
How to point "latest" dist-tag to a previous version in npm?
I have a published project with a few dist-tags: "latest", "dev", and "beta". I know how to bump the version by doing npm...
Read more >
Ubuntu Manpage: npm-install - Install a package
npm -install - Install a package Synopsis npm install (with no args, in package ... will install all modules listed as dependencies in...
Read more >
npm packages in the Package Registry - GitLab Docs
Package JSON file is too large. Make sure that your package.json file does not exceed 20,000 characters. npm publish returns npm ERR!
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