You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
standard-version@9.3.2
dotgitignore@2.1.0
Node/npm version: 7.21.0
OS: Debian 10
Possible Solution
Use relative path instead of absolute path for configFiles
The text was updated successfully, but these errors were encountered:
I also don't really understand why files are filtered based on .gitignore.
For example why would you not bump package-lock.json even if it is part of the .gitignore?
But that's another question anyway.
Hi,
standard-version
was never bumpingpackage.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
/home/user/myproject/
withpackage.json
.gitignore
containinghome
package.json
is not updated because the abs path/home/user/myproject/package.json
containshome
Current behavior
My
package.json
is not bumped.Expected behavior
My
package.json
have to be bumped.Environment
standard-version@9.3.2
dotgitignore@2.1.0
Possible Solution
Use relative path instead of absolute path for
configFiles
The text was updated successfully, but these errors were encountered: