File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1111eslint.sarif
1212# for local incremental compilation
1313tsconfig.tsbuildinfo
14+ # esbuild metadata file
15+ meta.json
Original file line number Diff line number Diff line change 1- import { copyFile , rm } from "node:fs/promises" ;
1+ import { copyFile , rm , writeFile } from "node:fs/promises" ;
22import { dirname , join } from "node:path" ;
33import { fileURLToPath } from "node:url" ;
44
@@ -74,7 +74,10 @@ const context = await esbuild.context({
7474 define : {
7575 __CODEQL_ACTION_VERSION__ : JSON . stringify ( pkg . version ) ,
7676 } ,
77+ metafile : true ,
7778} ) ;
7879
79- await context . rebuild ( ) ;
80+ const result = await context . rebuild ( ) ;
81+ await writeFile ( "meta.json" , JSON . stringify ( result . metafile ) ) ;
82+
8083await context . dispose ( ) ;
You can’t perform that action at this time.
0 commit comments