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

chore: migrate everything to ESM #5345

Merged
merged 7 commits into from
Jan 9, 2023
Merged

chore: migrate everything to ESM #5345

merged 7 commits into from
Jan 9, 2023

Conversation

danez
Copy link
Contributor

@danez danez commented Jan 3, 2023

This is the last ESM PR for the src codebase. There are no commonjs files anymore in in the src 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.

@danez danez requested review from lukasholzer and a team January 3, 2023 13:18
@danez danez self-assigned this Jan 3, 2023
@danez danez requested a review from a team as a code owner January 3, 2023 13:18
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

📊 Benchmark results

Comparing with 21d9191

Package size: 259 MB

(no change)

^                                          259 MB  259 MB  259 MB  259 MB  259 MB  259 MB  259 MB  259 MB 
│  249 MB  249 MB  249 MB  249 MB  242 MB   ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐  
│   ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend

})
})

test.skipIf(process.platform === 'win32')(
Copy link
Contributor Author

@danez danez Jan 5, 2023

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.

Copy link
Contributor

@khendrikse khendrikse left a 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!

@danez danez added the automerge Add to Kodiak auto merge queue label Jan 9, 2023
@kodiakhq kodiakhq bot merged commit 16376e9 into main Jan 9, 2023
@kodiakhq kodiakhq bot deleted the esm5 branch January 9, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to Kodiak auto merge queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants