🎥 Make videos programmatically with React
more migrations
Jonny Burger36cbc6b5efb9
diff --git a/packages/install-whisper-cpp/package.json b/packages/install-whisper-cpp/package.jsonindex a42a79d166..d0770c8d7e 100644--- a/packages/install-whisper-cpp/package.json+++ b/packages/install-whisper-cpp/package.json@@ -15,9 +15,11 @@"lint": "eslint src --ext ts,tsx","build": "tsc -d","watch": "tsc -w",- "test": "vitest --run"+ "test": "bun test src"},- "files": ["dist"],+ "files": [+ "dist"+ ],"author": "Jonny Burger <[email protected]>","license": "SEE LICENSE IN LICENSE.md","dependencies": {},@@ -33,10 +35,13 @@"eslint-plugin-react": "7.32.2","eslint-plugin-react-hooks": "4.4.0","prettier": "3.2.5",- "prettier-plugin-organize-imports": "3.2.4",- "vitest": "0.31.1"+ "prettier-plugin-organize-imports": "3.2.4"},- "keywords": ["remotion", "openai", "whisper"],+ "keywords": [+ "remotion",+ "openai",+ "whisper"+ ],"publishConfig": {"access": "public"}diff --git a/packages/paths/src/test/get-bounding-box.test.ts b/packages/paths/src/test/get-bounding-box.test.tsindex 22d2ac84e9..7bf114105e 100644--- a/packages/paths/src/test/get-bounding-box.test.ts+++ b/packages/paths/src/test/get-bounding-box.test.ts@@ -23,5 +23,5 @@ test('reset path should have 0 bounding box', () => {expect(x1).toBe(0);expect(x2).toBe(50);expect(y1).toBe(7.105427357601002e-15);- expect(y2).toBe(50.000000000000014);+ expect(y2).toBeWithin(49.9999999999, 50.0000000001);});diff --git a/packages/studio/package.json b/packages/studio/package.jsonindex 5244203dc5..bf365f7f9d 100644--- a/packages/studio/package.json+++ b/packages/studio/package.json@@ -8,7 +8,7 @@"lint": "eslint src --ext ts,tsx","watch": "tsc -w","build": "tsc -d",- "test": "vitest --run",+ "test": "bun test src","formatting": "prettier src --check"},"author": "Jonny Burger <[email protected]>",@@ -45,7 +45,6 @@"prettier": "3.2.5","@types/semver": "^7.3.4","prettier-plugin-organize-imports": "3.2.4",- "vitest": "0.31.1","zod": "^3.22.3","@remotion/zod-types": "workspace:*"},diff --git a/packages/transitions/bunfig.toml b/packages/transitions/bunfig.tomlnew file mode 100644index 0000000000..d20eff30d4--- /dev/null+++ b/packages/transitions/bunfig.toml@@ -0,0 +1,2 @@+[test]+preload = "./happydom.ts"diff --git a/packages/transitions/happydom.ts b/packages/transitions/happydom.tsnew file mode 100644index 0000000000..3194d2051d--- /dev/null+++ b/packages/transitions/happydom.ts@@ -0,0 +1,6 @@+import {GlobalRegistrator} from '@happy-dom/global-registrator';++GlobalRegistrator.register();+window.origin = 'http://localhost:3000';+// @ts-expect-error+window.remotion_staticBase = '/static-abcdef';diff --git a/packages/transitions/package.json b/packages/transitions/package.jsonindex 589e69b292..e27bae281e 100644--- a/packages/transitions/package.json+++ b/packages/transitions/package.json@@ -7,7 +7,7 @@"module": "dist/esm/index.js","types": "dist/index.d.ts","scripts": {- "test": "vitest --run",+ "test": "bun test src","lint": "eslint src --ext ts,tsx","formatting": "prettier src --check","watch": "tsc -w",@@ -32,6 +32,7 @@"eslint": "8.56.0","prettier": "3.2.5","prettier-plugin-organize-imports": "3.2.4",+ "@happy-dom/global-registrator": "^14.5.1","remotion": "workspace:*","react": "18.2.0","react-dom": "18.2.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex bf09f90f56..f6d4c35300 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1144,9 +1144,6 @@ importers:prettier-plugin-organize-imports:specifier: 3.2.4version: 3.2.4([email protected])([email protected])- vitest:- specifier: 0.31.1- version: 0.31.1packages/it-tests:devDependencies:@@ -1931,9 +1928,6 @@ importers:react-dom:specifier: 18.2.0version: 18.2.0([email protected])- vitest:- specifier: 0.31.1- version: 0.31.1zod:specifier: ^3.22.3version: 3.22.3@@ -2191,6 +2185,9 @@ importers:specifier: workspace:*version: link:../coredevDependencies:+ '@happy-dom/global-registrator':+ specifier: ^14.5.1+ version: 14.5.1'@jonny/eslint-config':specifier: 3.0.281version: 3.0.281([email protected])([email protected])@@ -13220,11 +13217,6 @@ packages:engines: {node: '>=0.12'}dev: false- resolution: {integrity: sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==}- engines: {node: '>=0.12'}- dev: false-resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}engines: {node: '>=0.12'}@@ -17992,7 +17984,7 @@ packages:resolution: {integrity: sha512-kwpuwzB+px5WUg9pyK0IcK/shltJN5/OVhQagxhCQNtT9Y9QRZqNY2e1cmbu/paRh5LMnz/oVTVLBpjFmMZhSg==}dependencies:- entities: 4.4.0+ entities: 4.5.0dev: false