Skip to content

publish command changes file mode of package.json #2125

@shellscape

Description

@shellscape

pnpm version: 4.1.6

Code to reproduce the issue:

This issue can be reproduced using the pnpm publish command on any package.

Expected behavior:

No mode change, or a revert back to the original mode after the operation is done.

Actual behavior:

Below is a copy of a git diff run on the file after a publish operation:

diff --git a/packages/alias/package.json b/packages/alias/package.json
old mode 100755
new mode 100644

Additional information:

  • node -v prints: 12.3.1
  • Windows, OS X, or Linux?: Mac OS High Sierra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions