Skip to content

Commit

Permalink
fix(pack): missing end of line anchors in package.json regex filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuna0x0 committed Jan 3, 2025
1 parent b4b293a commit 60e519b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion releasing/plugin-commands-publishing/src/pack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ async function packPkg (opts: {
await Promise.all(Object.entries(filesMap).map(async ([name, source]) => {
const isExecutable = bins.some((bin) => path.relative(bin, source) === '')
const mode = isExecutable ? 0o755 : 0o644
if (/^package\/package\.(json|json5|yaml)/.test(name)) {
if (/^package\/package\.(json|json5|yaml)$/.test(name)) {
pack.entry({ mode, mtime, name: 'package/package.json' }, JSON.stringify(manifest, null, 2))
return
}
Expand Down

0 comments on commit 60e519b

Please sign in to comment.