rsnext/packages/create-next-app/helpers
Sukka b8b104506d
refactor(cna): make create-next-app even smaller and faster (#58030)
The PR further reduces the `create-next-app` installation size by
another 80 KiB:

- Replace the callback version of Node.js built-in `dns` API usage with
`dns/promise` + async/await
- Replace `got` w/ `fetch` since Next.js and `create-next-app` now
target Node.js 18.17.0+
- Download and extract the tar.gz file in the memory (without creating
temporary files). This improves the performance.
- Some other minor refinements.

Following these changes, the size of `dist/index.js` is now 536 KiB.
2024-01-11 09:40:29 -05:00
..
copy.ts refactor(cna): make create-next-app even smaller (#53241) 2023-07-28 17:21:58 +00:00
examples.ts refactor(cna): make create-next-app even smaller and faster (#58030) 2024-01-11 09:40:29 -05:00
get-pkg-manager.ts Add --use-bun to create-next-app (#53467) 2023-08-03 18:00:38 -07:00
git.ts [create-next-app]: respecting the user's init.defaultBranch git con… (#49960) 2023-05-20 23:53:58 +00:00
install.ts refactor(cna): make create-next-app even smaller and faster (#58030) 2024-01-11 09:40:29 -05:00
is-folder-empty.ts refactor(cna): make create-next-app even smaller and faster (#58030) 2024-01-11 09:40:29 -05:00
is-online.ts refactor(cna): make create-next-app even smaller and faster (#58030) 2024-01-11 09:40:29 -05:00
is-writeable.ts CNA: Add warning about permission (#14889) 2020-08-19 17:09:34 +00:00
validate-pkg.ts refactor(cna): make create-next-app even smaller and faster (#58030) 2024-01-11 09:40:29 -05:00