[next][node][redwood][remix] Update @vercel/nft to 0.21.0 (#8208)

### Related Issues

Updates to the latest version of `@vercel/nft` which adds fs concurrency limits to help alleviate memory usage. 

x-ref: https://github.com/vercel/nft/pull/301

### 📋 Checklist

<!--
  Please keep your PR as a Draft until the checklist is complete
-->

#### Tests

- [ ] The code changed/added as part of this PR has been covered with tests
- [ ] All tests pass locally with `yarn test-unit`

#### Code Review

- [ ] This PR has a concise title and thorough description useful to a reviewer
- [ ] Issue from task tracker has a link to this PR
This commit is contained in:
JJ Kasper
2022-07-21 19:45:53 -05:00
committed by GitHub
parent 3d3774ee7e
commit 0ad7fd34f4
7 changed files with 20 additions and 10 deletions

View File

@@ -39,11 +39,13 @@ async function runBuildLambda(inputPath) {
config: build.config,
});
const workPath = path.join(
let workPath = path.join(
os.tmpdir(),
`vercel-${Date.now()}-${Math.floor(Math.random() * 100)}`
);
await fs.ensureDir(workPath);
workPath = await fs.realpath(workPath);
console.log('building in', workPath);
const buildResult = await wrapper.build({