Add typescript and esbuild to browserless setup (#8666)
Updated both the update and install scripts to include installation of typescript and esbuild for browserless. This ensures required build dependencies are present before running build commands.
This commit is contained in:
parent
92f9033981
commit
01f1985d2d
@ -66,6 +66,8 @@ function update_script() {
|
|||||||
$STD unzip "$brwsr_tmp"
|
$STD unzip "$brwsr_tmp"
|
||||||
mv browserless-"$TAG"/ /opt/browserless
|
mv browserless-"$TAG"/ /opt/browserless
|
||||||
cd /opt/browserless
|
cd /opt/browserless
|
||||||
|
$STD npm install typescript
|
||||||
|
$STD npm install esbuild
|
||||||
$STD npm install
|
$STD npm install
|
||||||
rm -rf src/routes/{chrome,edge,firefox,webkit}
|
rm -rf src/routes/{chrome,edge,firefox,webkit}
|
||||||
$STD node_modules/playwright-core/cli.js install --with-deps chromium
|
$STD node_modules/playwright-core/cli.js install --with-deps chromium
|
||||||
|
|||||||
@ -61,6 +61,8 @@ cd /opt/browserless
|
|||||||
$STD npm install
|
$STD npm install
|
||||||
rm -rf src/routes/{chrome,edge,firefox,webkit}
|
rm -rf src/routes/{chrome,edge,firefox,webkit}
|
||||||
$STD node_modules/playwright-core/cli.js install --with-deps chromium
|
$STD node_modules/playwright-core/cli.js install --with-deps chromium
|
||||||
|
$STD npm install typescript --save-dev
|
||||||
|
$STD npm install esbuild --save-dev
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
$STD npm run build:function
|
$STD npm run build:function
|
||||||
$STD npm prune production
|
$STD npm prune production
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user