mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Output relative to __dirname
This commit is contained in:
@@ -64,7 +64,11 @@ const onEndPlugin = {
|
|||||||
|
|
||||||
const context = await esbuild.context({
|
const context = await esbuild.context({
|
||||||
// Include upload-lib.ts as an entry point for use in testing environments.
|
// Include upload-lib.ts as an entry point for use in testing environments.
|
||||||
entryPoints: globSync([`${SRC_DIR}/*-action.ts`, `${SRC_DIR}/*-action-post.ts`, "src/upload-lib.ts"]),
|
entryPoints: globSync([
|
||||||
|
`${SRC_DIR}/*-action.ts`,
|
||||||
|
`${SRC_DIR}/*-action-post.ts`,
|
||||||
|
"src/upload-lib.ts",
|
||||||
|
]),
|
||||||
bundle: true,
|
bundle: true,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
outdir: OUT_DIR,
|
outdir: OUT_DIR,
|
||||||
@@ -78,6 +82,6 @@ const context = await esbuild.context({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const result = await context.rebuild();
|
const result = await context.rebuild();
|
||||||
await writeFile("meta.json", JSON.stringify(result.metafile));
|
await writeFile(join(__dirname, "meta.json"), JSON.stringify(result.metafile));
|
||||||
|
|
||||||
await context.dispose();
|
await context.dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user