web: Fix `temp-dir` upgrade

`temp-dir` 3.0.0 is now pure ESM. As such, it no longer can be `require`d.
To workaround this, use `await import` instead.

In the long-term, it might be worth converting the `sign_xpi.js`
script itself to ESM.
This commit is contained in:
relrelb 2022-11-03 00:09:53 +02:00 committed by relrelb
parent 807f1f6690
commit 6dbf78ae59
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ async function sign(
destination
) {
const { signAddon } = await import("sign-addon");
const tempDir = require("temp-dir");
const tempDir = await import("temp-dir");
const result = await signAddon({
xpiPath: unsignedPath,
version,