Преглед на файлове

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

inottn преди 1 година
родител
ревизия
0c8dd94ef9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      scripts/size-report.js

+ 1 - 1
scripts/size-report.js

@@ -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
 }
 
 /**