Skip to content

yalc does not retain file permissions #80

@shirotech

Description

@shirotech

The use case is I want to test the install script in package without publishing it remotely. However when I run yalc then yalc add it packs all fine except the permissions are not retained.

before

-rwxr-xr-x    1 van  staff    1126 Apr 17 23:42 sync.js

after

-rw-r--r--   1 van  staff    1126 Apr 17 23:44 sync.js

As you can see the execute permissions has been stripped, therefore I cannot execute my script as it's meant to.

When I run yarn install --force

It gives me this error

/bin/sh: ./sync.js: Permission denied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions