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

fix: Remove remaining uses of -r esm #3710

Merged
merged 1 commit into from
Aug 17, 2021
Merged

fix: Remove remaining uses of -r esm #3710

merged 1 commit into from
Aug 17, 2021

Conversation

kriskowal
Copy link
Member

This change follows #527 to erase some remaining evidence of -r esm in shebangs and incidentally also follows #3708 removing the env -S flag that does not work on Linux for these cases.

@kriskowal kriskowal requested a review from dckc August 17, 2021 01:26
@kriskowal kriskowal changed the base branch from master to kris-shebang-s August 17, 2021 01:26
spawn: childProcessPowers.spawn,
osType: osPowers.type,
readdirSync: fsPowers.readdirSync,
readFileSync: fsPowers.readFileSync,
Copy link
Member Author

Choose a reason for hiding this comment

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

Although I found an if __name__ == '__main__' idiom for NESM, but even then, I struggled to preserve your intent of limiting the scope of powers to the entrypoint, forcing a certain discipline to thread them through. One of the troubles was having to find names that would not run afoul of eslint name shadowing prohibitions. I arrived at this convention, with *Powers module names, which is mildly dissatisfying but got the job done surgically. It might be worthwhile to factor out a replay-entrypoint.js that imports this module and the powers instead.

Copy link
Member

Choose a reason for hiding this comment

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

GMTA... I did the same thing recently... Modulo Powers vs Top

spawn: childProcessPowers.spawn,
osType: osPowers.type,
readdirSync: fsPowers.readdirSync,
readFileSync: fsPowers.readFileSync,
Copy link
Member

Choose a reason for hiding this comment

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

GMTA... I did the same thing recently... Modulo Powers vs Top

Base automatically changed from kris-shebang-s to master August 17, 2021 15:42
@kriskowal kriskowal merged commit e30c934 into master Aug 17, 2021
@kriskowal kriskowal deleted the kris-resm-vestiges branch August 17, 2021 19:03
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.

2 participants