Skip to content

Bump files are skipped using absolute path file #902

Open
absolute-version/commit-and-tag-version
#1
@vallsv

Description

@vallsv

Hi,

standard-version was never bumping package.json on one of my project.

After some checks it looks like the file is filtered based on the absolute path of the file.
As result dotgitignore can incorrectly answer that a file is ignored by .gitignore based on parent directory not part of the project.

How to reproduce

  • create a js project in /home/user/myproject/ with package.json
  • create a .gitignore containing home
  • try to release a new version
  • package.json is not updated because the abs path /home/user/myproject/package.json contains home

Current behavior

My package.json is not bumped.

Expected behavior

My package.json have to be bumped.

Environment

Possible Solution

Use relative path instead of absolute path for configFiles

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions