Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve execute permissions #16257

Closed
Richie765 opened this issue Jun 4, 2017 · 3 comments
Closed

Preserve execute permissions #16257

Richie765 opened this issue Jun 4, 2017 · 3 comments
Labels
Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript

Comments

@Richie765
Copy link

Feature request. Could the 'execute' permission be preserved the the generated output?

Current situation:

ls -l src
-rwxr-xr-x 1 user staff 656 Jun  4 19:42 main.ts

ls -l build
-rw-r--r-- 1 user staff 788 Jun  4 19:56 main.js

It would be nice if build/main.js also had the x permissions so it can be executed directly.

@DanielRosenwasser
Copy link
Member

Managing permissions for files isn't in the scope of this project. See #14726 for a sort of "dual" request.

@DanielRosenwasser DanielRosenwasser added Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript labels Aug 2, 2017
@mhegazy mhegazy closed this as completed Nov 9, 2017
@berndsi
Copy link

berndsi commented Dec 30, 2017

As a workaround in my case I added the executable script file to a folder outside the build dir (let's say bin), and keep the contents to just a single require call to the one in the build dir.

./bin/foo.js:

#! /usr/bin/env node
require('../build/foo.js');

This file in bin stays the same, so I added the executable flag there.

@cicorias
Copy link
Member

cicorias commented Apr 5, 2018

The response of "managing permissions" isn't really what this is about. It's more about preserving the runtime characteristics.

@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants