-
Notifications
You must be signed in to change notification settings - Fork 744
Exports shell.js and make.js on package.json #1135
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
Conversation
Exports shell.js and make.js on package.json so make.js can be imported as "shelljs/make" without require file extension when using ESM.
|
Can you link me to documentation on the |
|
The related section of the official documentation: https://nodejs.org/docs/latest-v20.x/api/packages.html#package-entry-points After rereading, can be better: What do you think? |
|
That link suggests this applies to both commonjs and ESM, but your PR mentions you're running into problems with ESM specifically. Do I understand correctly that ESM doesn't respect the shelljs/make isn't officially supported anymore, but I'm OK with adding this as an export since that's fairly low effort. |
|
Do you want to add a line for
or should I merge as-is? |
|
ESM respects the The correct syntax with ESM to import from I will make another PR, if I can this afternoon, to add the line
It is a pity (I will try to refactorice to use |
Exports make.js on package.json so make.js can be required as "shelljs/make.js" using CommonJS.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1135 +/- ##
=======================================
Coverage 97.27% 97.27%
=======================================
Files 36 36
Lines 1360 1360
=======================================
Hits 1323 1323
Misses 37 37 ☔ View full report in Codecov by Sentry. |
This updates the ShellJS peer dependency to the latest release. This also drops support for all node versions prior to v18 to match ShellJS's version range. This includes some changes due to the latest shelljs version: * `shx sed -i` will now run silently. This is compatible with unix behavior. See shelljs/shelljs#959 * `shx --version` no longer prints the ShellJS version. This is a consequence of the switch to an explicit "exports" list in shelljs (see shelljs/shelljs#1195 and shelljs/shelljs#1135). Test: npm test
This updates the ShellJS peer dependency to the latest release. This also drops support for all node versions prior to v18 to match ShellJS's version range. This includes some changes due to the latest shelljs version: * `shx sed -i` will now run silently. This is compatible with unix behavior. See shelljs/shelljs#959 * `shx --version` no longer prints the ShellJS version. This is a consequence of the switch to an explicit "exports" list in shelljs (see shelljs/shelljs#1195 and shelljs/shelljs#1135). Test: npm test
This updates the ShellJS peer dependency to the latest release. This also drops support for all node versions prior to v18 to match ShellJS's version range. This includes some changes due to the latest shelljs version: * `shx sed -i` will now run silently. This is compatible with unix behavior. See shelljs/shelljs#959 * `shx --version` no longer prints the ShellJS version. This is a consequence of the switch to an explicit "exports" list in shelljs (see shelljs/shelljs#1195 and shelljs/shelljs#1135). Test: npm test
Exports shell.js and make.js on package.json so make.js can be imported as "shelljs/make" without require file extension when using ESM.