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

feat: Handle package.json lifecycle scripts #23558

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Apr 25, 2024

Blocked by #23498
Blocked by #23496
Blocked by denoland/deno_npm#47
Blocked by denoland/eszip#182

@@ -648,6 +737,39 @@ fn get_package_folder_id_from_folder_name(
})
}

fn symlink_bin_entry(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have some code somewhere else that handles doing a symlink like this on unix and will use junctions on windows. It would be good to reuse that code here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or actually, I guess since this is setting up scripts for windows we should have it create something executable here for that.

log::warn!(" Do you want to run this script with full permissions? [y/N]");
// ASCII code for the bell character.
print!("\x07");
eprint!(" > ");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could a previously executing script stuff stdin? We should maybe re-use the permission prompt code here somehow?

@dsherret dsherret marked this pull request as draft April 26, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants