Closed Badisi closed 2 years ago
Hey @Badisi,
Nice catch. But let's simplify a bit: filter(/\/package\.json$/.test)
But it won't work for a package.json at the root of the workspace
'/path/to/package.json' -> OK
'/path/to/package2.json' -> KO
'/path/to/test-package.json' -> KO
'package.json' -> KO (should work here)
'/package.json' -> OK
'./package.json' -> OK
Glob returns absolute paths here, so this should not be a problem.
Done
lgtm. Thanks for the contribution.
:tada: This PR is included in version 2.11.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I have an issue where not only
package.json
files are returned but alsong-package.json
files. Those are valid configuration files used by ng-packgr.This PR fixes this by making sure the filename (and not the end of the file path) matches 'package.json'.