Skip to content

Commit 2eb80f1

Browse files
committed
"Downgrade" to node.js v12.x
GitHub Actions run on node.js v12.x, therefore we cannot use any newer features. This lead to an error in a recent upgrade when trying to unpack and download the full SDK: TypeError: fs_1.default.promises.rm is not a function By fixing @types/node to a version compatible with node.js v12.x we will avoid this issue in the future. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f66ac0c commit 2eb80f1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@types/jest": "^27.0.2",
38-
"@types/node": "^16.10.3",
38+
"@types/node": "^12.12.6",
3939
"@types/unzipper": "^0.10.4",
4040
"@typescript-eslint/parser": "^4.33.0",
4141
"@vercel/ncc": "^0.31.1",

src/downloader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ async function unpackTarXZInZipFromURL(
178178
}
179179
})
180180
})
181-
await fs.promises.rm(tmp, {recursive: true})
181+
await fs.promises.unlink(zipPath)
182+
await fs.promises.rmdir(tmp)
182183
}
183184

184185
export async function get(

0 commit comments

Comments
 (0)