fix(ci): use `with` instead of `assert` syntax (#12901)

This commit is contained in:
inottn 2025-02-18 08:18:34 +08:00 committed by GitHub
parent efed3ebee6
commit 0c8dd94ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ async function renderUsages() {
*/
async function importJSON(filePath) {
if (!existsSync(filePath)) return undefined
return (await import(filePath, { assert: { type: 'json' } })).default
return (await import(filePath, { with: { type: 'json' } })).default
}
/**