Cherry-pick:
60de8308a8
PR: #23710
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
182a71f254
commit
ed09eb6065
|
|
@ -9,6 +9,7 @@
|
||||||
!lib/**/*.html
|
!lib/**/*.html
|
||||||
!lib/**/*.png
|
!lib/**/*.png
|
||||||
!lib/**/*.ttf
|
!lib/**/*.ttf
|
||||||
|
!lib/xdg-open
|
||||||
# Exclude injected files. A preprocessed version of these is included via lib/generated.
|
# Exclude injected files. A preprocessed version of these is included via lib/generated.
|
||||||
# See src/server/injected/README.md.
|
# See src/server/injected/README.md.
|
||||||
lib/**/injected/
|
lib/**/injected/
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,12 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const esbuild = require('esbuild');
|
const esbuild = require('esbuild');
|
||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
|
{
|
||||||
|
// 'open' package requires 'xdg-open' script to be present, which does not get bundled by esbuild.
|
||||||
|
fs.copyFileSync(path.join(__dirname, 'node_modules/open/xdg-open'), path.join(__dirname, '../../lib/xdg-open'));
|
||||||
|
}
|
||||||
|
|
||||||
esbuild.build({
|
esbuild.build({
|
||||||
entryPoints: [path.join(__dirname, 'src/utilsBundleImpl.ts')],
|
entryPoints: [path.join(__dirname, 'src/utilsBundleImpl.ts')],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue