소스 검색

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