developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
7.99k stars 361 forks source link

After building a file, I get "Permission denied" when call it #1035

Closed dmaklygin closed 1 year ago

dmaklygin commented 1 year ago

I use microbundle to build nodeJS file that will be used in node_modules/.bin folder.

But on linux, when I call:

yarn my-script 

I get /bin/sh: 1: my-script: Permission denied

I think, it's not intentional.

rschristian commented 1 year ago

This is unrelated to Microbundle. When files are created, they'll lack execution permissions (but will have when your module is installed normally from NPM). You can set the correct permissions with chmod +x ./my-script.js