rsnext/packages/next/lib
Nick Kelly 0593dbb260
remove unecessary fs.stat calls from recursive-readdir (#27769)
## Performance improvement

- [x] Performance improvement

Removes unnecessary `fs.stat` calls in `recursiveReadDir`.

`fs.readdir` had an option `withFileTypes: boolean` added NodeJS version 10. It can be used to read the directory contents and fetch its stats simultaneously, removing the need to read individual file stats after reading the directory contents.
2021-08-04 23:06:06 +00:00
..
eslint [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
helpers [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
typescript [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
coalesced-function.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
compile-error.ts Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
constants.ts [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
fatal-error.ts Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
file-exists.ts Fix long URLs causing 400s with dynamic routes/rewrites (#26221) 2021-06-17 10:59:46 +02:00
find-config.ts find-up 2020-03-30 16:26:25 -04:00
find-pages-dir.ts Add initial support for new env handling (#10525) 2020-03-26 13:32:41 +01:00
get-package-version.ts perf(next): use require.resolve instead of resolve (#19518) 2021-01-11 14:43:08 +00:00
has-necessary-dependencies.ts [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
install-dependencies.ts [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
is-serializable-props.ts Clarify error message in isSerializableProps (#22856) 2021-07-25 06:08:30 +00:00
is-yarn.ts [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
load-custom-routes.ts Enforce source/destination limit for custom routes (#27703) 2021-08-02 22:34:44 +00:00
non-nullable.ts temporary: re-flag font optimization (#20372) 2020-12-21 19:26:00 +00:00
oxford-comma-list.ts refactor(typescript): extract preflight functions (#13510) 2020-05-28 23:39:46 +00:00
pretty-bytes.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
recursive-copy.ts Upgrade eslint to the latest version (#24377) 2021-04-25 18:34:36 +00:00
recursive-delete.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
recursive-readdir.ts remove unecessary fs.stat calls from recursive-readdir (#27769) 2021-08-04 23:06:06 +00:00
verifyAndLint.ts Add lint checking events (#26089) 2021-06-14 20:31:40 -05:00
verifyTypeScriptSetup.ts [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
worker.ts improve static generation UX (#27171) 2021-07-16 09:21:44 +00:00