Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(perf): lazy load glob on normalize.js (#89)
Since npm run didn't call those steps, we can save some `ms` by lazy loading this dependency. Before: ![image](https://github.com/npm/package-json/assets/12551007/b4654691-85c8-4431-ba60-f7188363a125) After: ![image](https://github.com/npm/package-json/assets/12551007/f3b02669-2070-4171-aeda-90954c55f54d) The entire load time didn't change, still `13ms` before & after, but if we call `npm run` inside a project that didn't have workspaces, we will save some `ms`, like this one: ![image](https://github.com/npm/package-json/assets/12551007/0fe98367-4967-40f2-8d71-2a1b8c4eda55) But this will also require the PR npm/cli#7360 to be merged.
- Loading branch information