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
Cannot Publish Dynamically Generated Packages #2151
Comments
I guess I wouldn't expect this to be the case (generating content that you then want to be versioned)? I thought everyone provided separate entries ( |
It’s kind of a weird case, for sure. I would prefer to not check those packages in, since they’re created from scripts. The latest versions of react-dnd ship with esm by default and |
For the immediate problem, I think we might be able to add the lerna/commands/version/lib/git-add.js Line 15 in 9457a21
Quick testing locally indicates that |
any plan to fix this ? cause I want a package to test and don't want to share it to other one. |
I'm also wondering if there's any plan to fix this moving forward? I've got a project with a similar setup to the OP and would love to see a solution to this. |
@evocateur Is there a reason you need to exactly specify all the files in the git add? Why not just use |
Expected Behavior
In this repository: https://github.com/react-dnd/react-dnd, there are a handful of packages that are dynamically created when running
yarn build
. These are the CommonJS variants of the core packages.When I run a release, I expect that my packages are all published and that the repository is tagged appropriately.
Current Behavior
When the release command is run, the semver questions are asked and the versions are bumped, but action fails when creating github tags. Logs are pasted below.
Possible Solution
If package.json files are .gitignored, then don't add them in the git add step.
lerna-debug.log
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: