-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use
esbuild
to reduce the size of the action (#1334)
- Loading branch information
Showing
2,469 changed files
with
64,289 additions
and
201,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env node | ||
/* eslint-disable node/no-unpublished-import */ | ||
|
||
import * as esbuild from 'esbuild'; | ||
import { fileURLToPath } from 'url'; | ||
|
||
const __dirname = fileURLToPath(new URL('.', import.meta.url)); | ||
|
||
async function buildAll() { | ||
// Note: cjs is the only possible option at this moment. | ||
await esbuild.build({ | ||
absWorkingDir: __dirname, | ||
entryPoints: ['src/main_root.ts'], | ||
bundle: true, | ||
platform: 'node', | ||
outfile: '../action/lib/main_root.js', | ||
}); | ||
} | ||
|
||
buildAll(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,8 @@ | |
"ignoreWords": [ | ||
"EDITMSG", | ||
"pollyjs" | ||
], | ||
"words": [ | ||
"outfile" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.