Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix issue with bumping packages without package.json#version#705

Open
Andarist wants to merge 2 commits intomainfrom
fix/no-version-field
Open

Fix issue with bumping packages without package.json#version#705
Andarist wants to merge 2 commits intomainfrom
fix/no-version-field

Conversation

@Andarist
Copy link
Member

No description provided.

@Andarist Andarist requested a review from emmatown December 12, 2021 22:42
@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2021

🦋 Changeset detected

Latest commit: 42f8b3b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@changesets/assemble-release-plan Patch
@changesets/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 12, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 42f8b3b:

Sandbox Source
Vanilla Configuration

expect(changesetDir).toContain(".ignored-temporarily.md");
});

it("should throw an error if a package.json is missing the name field", async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a new test - I've only found an old fixture that was currently unused and I've thought that it would be nice to reintroduce a test for this (as the original test for it was moved to manypkg)

Copy link
Member

@emmatown emmatown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making it 0.0.0 if there's no version feels like weird behavior to me. I feel like I'd rather have an error?

@Andarist
Copy link
Member Author

Making it 0.0.0 if there's no version feels like weird behavior to me. I feel like I'd rather have an error?

That is also an option I've considered - it would be more of a breaking change though, especially for snapshot releases as previously those would be successfully and "correctly" published as 0.0.0-timestamp.

I'm OK with throwing though - if we face any backlash we can always reconsider.

@Crunchyman-ralph
Copy link

any idea if this is still relevant ?

@Crunchyman-ralph
Copy link

I'm running into this exact issue, can we ping someone who can merge this ? @emmatown ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants