-
Notifications
You must be signed in to change notification settings - Fork 365
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
chore: migrate everything to ESM #5345
Conversation
📊 Benchmark resultsComparing with 21d9191 Package size: 259 MB(no change)
Legend
|
}) | ||
}) | ||
|
||
test.skipIf(process.platform === 'win32')( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was skipped before too, but from what I looked at seems like a problem with either in how we use netlify/config in the cli or a problem inside netlify/config on windows. And is definitely not a flaky test as stated before, just a broken one :)
❯ tests/integration/520.command.link.test.mjs (2 tests | 1 failed) 16162ms
❯ tests/integration/520.command.link.test.mjs > should create gitignore in repository root when cwd is subdirectory
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
→ Command failed with exit code 1: D:\a\cli\cli\bin\run.mjs link
FAIL tests/integration/520.command.link.test.mjs > should create gitignore in repository root when cwd is subdirectory
Configuration property "build.base" "..\..\..\..\..\..\..\..\runneradmin\AppData\Local\Temp\netlify-cli-tests-v18.12.1\5976\7f60040b-6d53-401b-9749-9964421586b0\monorepo\projects\project1" must be inside the repository root directory.
Error: Command failed with exit code 1: D:\a\cli\cli\bin\run.mjs link
Configuration property "build.base" "..\..\..\..\..\..\..\..\runneradmin\AppData\Local\Temp\netlify-cli-tests-v18.12.1\5976\7f60040b-6d53-401b-9749-9964421586b0\monorepo\projects\project1" must be inside the repository root directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
This is the last ESM PR for the
src
codebase. There are no commonjs files anymore in in thesrc
folder after this PR. (except templates for functions/sites, which I did not touch)There are still some cjs test files, which I want to convert separately, as I also have some Ideas on how to improve them.