build: move larger scripts into tools dir in workspace (#10653)

Having the `scripts` dir re-use all packages from the top-level was
getting quite unwieldy. Created new `tools` directory that is part of
the workspace. Packages are exported with the `@tools` package
namespace.
This commit is contained in:
Elliot DeNolf
2025-01-20 11:34:51 -05:00
committed by GitHub
parent ef4b8d9b00
commit f18ca9cc2b
32 changed files with 448 additions and 262 deletions

View File

@@ -80,13 +80,13 @@ const app = nextImport({
const handle = app.getRequestHandler()
let resolveServer
let resolveServer: () => void
const serverPromise = new Promise((res) => (resolveServer = res))
const serverPromise = new Promise<void>((res) => (resolveServer = res))
void app.prepare().then(() => {
createServer(async (req, res) => {
const parsedUrl = parse(req.url, true)
const parsedUrl = parse(req.url || '', true)
await handle(req, res, parsedUrl)
}).listen(port, () => {
resolveServer()