Skip to content

🎥 Make videos programmatically with React

enhancements

Jonny Burger13c107d0ef89
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 0c841a6667..27e36694ac 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -43,7 +43,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.pnpm-store
- key: ${{ runner.os }}-node${{ matrix.node_version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
+ key: ${{ runner.os }}-node${{ matrix.node_version }}
- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
diff --git a/package.json b/package.json
index a1c4f06fb2..2fe9719509 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"test": "turbo run lint test --concurrency=4",
+ "lint": "turbo run lint",
"build": "turbo run build",
"ci": "turbo run build lint test --concurrency=2",
"watch": "pnpm run watch --recursive --stream --parallel",
diff --git a/packages/renderer/src/serve-static.ts b/packages/renderer/src/serve-static.ts
index b009d8bdde..01ea23b6fb 100644
--- a/packages/renderer/src/serve-static.ts
+++ b/packages/renderer/src/serve-static.ts
@@ -8,7 +8,10 @@ export const serveStatic = async (
options?: {
port?: number;
}
-) => {
+): Promise<{
+ port: number;
+ close: () => Promise<void>;
+}> => {
const port = await getDesiredPort(
options?.port ?? Internals.getServerPort() ?? undefined,
3000,
@@ -46,6 +49,7 @@ export const serveStatic = async (
if ((err as Error).message.includes('EADDRINUSE')) {
return serveStatic(path, options);
}
+
throw err;
}
};