Skip to content

🎥 Make videos programmatically with React

fix stuff

Jonny Burger9fd928fee6c0
diff --git a/packages/bundler/src/index-html.ts b/packages/bundler/src/index-html.ts
index 98dbd08142..967440033e 100644
--- a/packages/bundler/src/index-html.ts
+++ b/packages/bundler/src/index-html.ts
@@ -1,4 +1,4 @@
-import type {GitSource, RenderDefaults} from '@remotion/studio';
+import type {GitSource, RenderDefaults} from '@remotion/studio-shared';
import type {StaticFile} from 'remotion';
import {Internals} from 'remotion';
diff --git a/packages/cli/src/get-render-defaults.ts b/packages/cli/src/get-render-defaults.ts
index 6db637a8dc..560bb41fd3 100644
--- a/packages/cli/src/get-render-defaults.ts
+++ b/packages/cli/src/get-render-defaults.ts
@@ -1,6 +1,6 @@
import {RenderInternals} from '@remotion/renderer';
import {BrowserSafeApis} from '@remotion/renderer/client';
-import type {RenderDefaults} from '@remotion/studio';
+import type {RenderDefaults} from '@remotion/studio-shared';
import {ConfigInternals} from './config';
import {parsedCli} from './parsed-cli';
diff --git a/packages/cli/src/setup-cache.ts b/packages/cli/src/setup-cache.ts
index e9a6c00999..684f638a1c 100644
--- a/packages/cli/src/setup-cache.ts
+++ b/packages/cli/src/setup-cache.ts
@@ -2,8 +2,8 @@ import type {MandatoryLegacyBundleOptions} from '@remotion/bundler';
import {BundlerInternals} from '@remotion/bundler';
import type {LogLevel} from '@remotion/renderer';
import {RenderInternals} from '@remotion/renderer';
-import type {GitSource} from '@remotion/studio';
import type {BundlingState, CopyingState} from '@remotion/studio-server';
+import type {GitSource} from '@remotion/studio-shared';
import {existsSync} from 'fs';
import path from 'path';
import {ConfigInternals} from './config';
diff --git a/packages/studio/internals.d.ts b/packages/studio/internals.d.ts
new file mode 100644
index 0000000000..06ff72429c
--- /dev/null
+++ b/packages/studio/internals.d.ts
@@ -0,0 +1 @@
+export * from './dist/internals';
diff --git a/packages/studio/internals.js b/packages/studio/internals.js
new file mode 100644
index 0000000000..d04802b3df
--- /dev/null
+++ b/packages/studio/internals.js
@@ -0,0 +1 @@
+module.exports = require('./dist/internals');
diff --git a/packages/studio/package.json b/packages/studio/package.json
index 6b01292c90..a8ad06025f 100644
--- a/packages/studio/package.json
+++ b/packages/studio/package.json
@@ -7,7 +7,7 @@
"scripts": {
"lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
- "build": "tsc -d",
+ "build": "tsc -d && bun bundle.ts",
"test": "bun test src",
"formatting": "prettier src --check"
},
@@ -52,14 +52,13 @@
"access": "public"
},
"exports": {
+ "./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"module": "./dist/esm/index.mjs",
"import": "./dist/esm/index.mjs",
"require": "./dist/index.js"
},
- "./package.json": "./package.json",
- "./entry": "./dist/previewEntry.js",
"./internals": {
"types": "./dist/internals.d.ts",
"module": "./dist/esm/internals.mjs",