Skip to content

🎥 Make videos programmatically with React

make index.ts the default entry point

Jonny Burger58ebeffc5251
diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.ts
index 10ec5f299b..2c1d30c43a 100644
--- a/packages/cli/src/compositions.ts
+++ b/packages/cli/src/compositions.ts
@@ -33,7 +33,7 @@ export const listCompositionsCommand = async (
Log.error(
'The `compositions` command requires you to specify a entry point. For example'
);
- Log.error(' npx remotion compositions src/index.tsx');
+ Log.error(' npx remotion compositions src/index.ts');
Log.error(
'See https://www.remotion.dev/docs/register-root for more information.'
);
diff --git a/packages/cli/src/preview-server/project-info.ts b/packages/cli/src/preview-server/project-info.ts
index 6a2c526f2f..741690d3ed 100644
--- a/packages/cli/src/preview-server/project-info.ts
+++ b/packages/cli/src/preview-server/project-info.ts
@@ -8,10 +8,11 @@ export type ProjectInfo = {
export const getProjectInfo = (remotionRoot: string): Promise<ProjectInfo> => {
const pathsToLookFor = [
- 'remotion/Root.tsx',
- 'remotion/Root.jsx',
'src/Root.tsx',
'src/Root.jsx',
+ 'remotion/Root.tsx',
+ 'remotion/Root.jsx',
+ 'app/remotion/Root.tsx',
'src/Video.tsx',
'src/Video.jsx',
].map((p) => {
diff --git a/packages/cli/src/preview.ts b/packages/cli/src/preview.ts
index cbf02fd426..6ef94e1495 100644
--- a/packages/cli/src/preview.ts
+++ b/packages/cli/src/preview.ts
@@ -43,7 +43,7 @@ export const previewCommand = async (remotionRoot: string, args: string[]) => {
Log.error(
'The preview command requires you to specify a root file. For example'
);
- Log.error(' npx remotion preview src/index.tsx');
+ Log.error(' npx remotion preview src/index.ts');
Log.error(
'See https://www.remotion.dev/docs/register-root for more information.'
);
diff --git a/packages/create-video/src/test/validate-templates.test.ts b/packages/create-video/src/test/validate-templates.test.ts
index 64e3ce154f..ed055f6b41 100644
--- a/packages/create-video/src/test/validate-templates.test.ts
+++ b/packages/create-video/src/test/validate-templates.test.ts
@@ -63,4 +63,48 @@ for (const template of FEATURED_TEMPLATES) {
});
expect(res.statusCode).toBe(404);
});
+
+ test(
+ template.shortName + ' should not have a standard entry point',
+ async () => {
+ const {contents, entryPoint} = await findFile([
+ getFileForTemplate(template, 'src/index.ts'),
+ getFileForTemplate(template, 'src/index.js'),
+ getFileForTemplate(template, 'remotion/index.ts'),
+ getFileForTemplate(template, 'app/remotion/index.ts'),
+ ]);
+ expect(entryPoint).toBeTruthy();
+ expect(contents).toMatch(/RemotionRoot/);
+ }
+ );
+ test(
+ template.shortName + ' should not have a standard Root file',
+ async () => {
+ const {contents, entryPoint} = await findFile([
+ getFileForTemplate(template, 'src/Root.tsx'),
+ getFileForTemplate(template, 'src/Root.jsx'),
+ getFileForTemplate(template, 'remotion/Root.tsx'),
+ getFileForTemplate(template, 'app/remotion/Root.tsx'),
+ ]);
+ expect(entryPoint).toBeTruthy();
+ expect(contents).toMatch(/export const RemotionRoot/);
+ }
+ );
}
+
+const findFile = async (options: string[]) => {
+ let entryPoint: string | null = null;
+ let contents: string | null = null;
+ for (const point of options) {
+ const res = await got(point, {
+ throwHttpErrors: false,
+ });
+ if (res.statusCode === 200) {
+ entryPoint = point;
+ contents = res.body;
+ break;
+ }
+ }
+
+ return {entryPoint, contents};
+};
diff --git a/packages/docs/blog/2021-08-11-remotion-2-3.md b/packages/docs/blog/2021-08-11-remotion-2-3.md
index e88f21d8d1..28a274177a 100644
--- a/packages/docs/blog/2021-08-11-remotion-2-3.md
+++ b/packages/docs/blog/2021-08-11-remotion-2-3.md
@@ -53,7 +53,7 @@ For still images, you don't need the timeline, so it will hide itself and give y
Rendering stills has become easier as well. The new `remotion still` command allows you to quickly generate a PNG or JPEG on the command line.
```
-npx remotion still --props='{"custom": "data"}' src/index.tsx my-comp out.png
+npx remotion still --props='{"custom": "data"}' my-comp out.png
```
## New `renderStill()` API
diff --git a/packages/docs/docs/bundle.md b/packages/docs/docs/bundle.md
index b754c52e72..771bac47cf 100644
--- a/packages/docs/docs/bundle.md
+++ b/packages/docs/docs/bundle.md
@@ -24,7 +24,7 @@ const bundle: (options?: {
### `entryPoint`
-A `string` containing an absolute path of the entry point of a Remotion project. [In a default Remotion project created with the template, the entry point is located at `src/index.tsx`](/docs/terminology#entry-point).
+A `string` containing an absolute path of the entry point of a Remotion project. [In most Remotion project created with the template, the entry point is located at `src/index.ts`](/docs/terminology#entry-point).
### `onProgress?`
@@ -113,7 +113,7 @@ const bundle: (
Example:
```ts
-await bundle("src/index.tsx", () => console.log(progress * 100 + "% done"), {
+await bundle("src/index.ts", () => console.log(progress * 100 + "% done"), {
webpackOverride,
});
```
diff --git a/packages/docs/docs/cli/benchmark.md b/packages/docs/docs/cli/benchmark.md
index 87946e6970..4942c60995 100644
--- a/packages/docs/docs/cli/benchmark.md
+++ b/packages/docs/docs/cli/benchmark.md
@@ -8,7 +8,7 @@ _available from v3.2.28_
Measures render time by running a render multiple times, if desired with multiple compositions and concurrency values to compare against each other.
```bash
-npx remotion benchmark src/index.tsx [composition-ids]
+npx remotion benchmark src/index.ts [composition-ids]
```
You can provide multiple composition IDs separated by comma, ex: `npx remotion benchmark src/index.ts --codec=h264 Main,Canvas,CSS`
diff --git a/packages/docs/docs/cli/cli.md b/packages/docs/docs/cli/cli.md
index 15da731827..c238c00e5a 100644
--- a/packages/docs/docs/cli/cli.md
+++ b/packages/docs/docs/cli/cli.md
@@ -21,7 +21,7 @@ The following commands are available - you can always run them using `npx remoti
## Example command
```
-npx remotion render --codec=vp8 src/index.tsx HelloWorld out/video.webm
+npx remotion render --codec=vp8 src/index.ts HelloWorld out/video.webm
```
## Fig.io autocompletion
diff --git a/packages/docs/docs/cli/compositions.md b/packages/docs/docs/cli/compositions.md
index 6b746b20aa..bfb5633189 100644
--- a/packages/docs/docs/cli/compositions.md
+++ b/packages/docs/docs/cli/compositions.md
@@ -12,8 +12,9 @@ npx remotion compositions <entry-file>
```
If `entry-file` is not passed, Remotion will try to detect the entry file with the following priority order:
+
1. Get the path from the Config (Can be set using `Config.Preview.setEntryPoint("<entry-point>")`).
-2. Look for some common paths i.e. `src/index.tsx`, `src/index.ts`, `src/index.js`, `remotion/index.js`.
+2. Look for some common paths i.e. `src/index.ts`, `src/index.tsx`, `src/index.js`, `remotion/index.js`.
3. Fail as entry point could not be determined.
## Flags
diff --git a/packages/docs/docs/cli/preview.md b/packages/docs/docs/cli/preview.md
index 44e89e6732..17acb7bdfc 100644
--- a/packages/docs/docs/cli/preview.md
+++ b/packages/docs/docs/cli/preview.md
@@ -10,8 +10,9 @@ npx remotion preview <entry-file>
```
If `entry-file` is not passed, Remotion will try to detect the entry file with the following priority order:
+
1. Get the path from the Config (Can be set using `Config.Preview.setEntryPoint("<entry-point>")`).
-2. Look for some common paths i.e. `src/index.tsx`, `src/index.ts`, `src/index.js`, `remotion/index.js`.
+2. Look for some common paths i.e. `src/index.ts`, `src/index.tsx`, `src/index.js`, `remotion/index.js`.
3. Fail as entry point could not be determined.
## Flags
diff --git a/packages/docs/docs/cli/render.md b/packages/docs/docs/cli/render.md
index 0b5001a63c..4a0eb954a1 100644
--- a/packages/docs/docs/cli/render.md
+++ b/packages/docs/docs/cli/render.md
@@ -12,8 +12,9 @@ npx remotion render <entry-file> [<composition-id>] [<output-location>]
```
If `entry-file` is not passed, Remotion will try to detect the entry file with the following priority order:
+
1. Get the path from the Config (Can be set using `Config.Preview.setEntryPoint("<entry-point>")`).
-2. Look for some common paths i.e. `src/index.tsx`, `src/index.ts`, `src/index.js`, `remotion/index.js`.
+2. Look for some common paths i.e. `src/index.ts`, `src/index.tsx` `src/index.js`, `remotion/index.ts`, `app/remotion/index.ts`.
3. Fail as entry point could not be determined.
If `output-location` is not passed, the media will be rendered into the `out` folder.
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index d27bd64be8..c955665c5b 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -99,7 +99,7 @@ Sets the Remotion [entry point](/docs/terminology#entry-point), you don't have t
```ts twoslash
import { Config } from "remotion";
// ---cut---
-Config.Bundling.setEntryPoint("./src/index.tsx");
+Config.Bundling.setEntryPoint("./src/index.ts");
```
If you pass an entry point as a CLI argument, it will take precedence.
@@ -419,7 +419,7 @@ import { Config } from "remotion";
Config.Output.setOutputLocation("out/video.mp4");
```
-If you pass another argument to the render command, it will take precedence: `npx remotion render src/index.tsx HelloWorld out/video.mp4`.
+If you pass another argument to the render command, it will take precedence: `npx remotion render src/index.ts HelloWorld out/video.mp4`.
### setOverwriteOutput()
diff --git a/packages/docs/docs/get-input-props.md b/packages/docs/docs/get-input-props.md
index ddc1d526d4..5d5edc829a 100644
--- a/packages/docs/docs/get-input-props.md
+++ b/packages/docs/docs/get-input-props.md
@@ -18,7 +18,7 @@ This method is not available when inside a Remotion Player. Instead, get the pro
Pass in a [parseable](/docs/cli) JSON representation using the `--props` flag to either `remotion preview` or `remotion render`:
```bash
-npx remotion render --props='{"hello": "world"}' src/index.tsx my-composition out/video.mp4
+npx remotion render --props='{"hello": "world"}' src/index.ts my-composition out/video.mp4
```
You can then access the props in JavaScript:
diff --git a/packages/docs/docs/lambda/cli/sites.md b/packages/docs/docs/lambda/cli/sites.md
index b41be913b7..0aeb33400d 100644
--- a/packages/docs/docs/lambda/cli/sites.md
+++ b/packages/docs/docs/lambda/cli/sites.md
@@ -15,7 +15,7 @@ The `npx remotion lambda sites` command allows to create, view and delete Remoti
## create
```
-npx remotion lambda sites create src/index.tsx
+npx remotion lambda sites create src/index.ts
```
Bundle and upload a Remotion video to an S3 bucket.
@@ -55,7 +55,7 @@ The [AWS region](/docs/lambda/region-selection) to select. Both project and func
Uploads the project to a specific directory and returns a deterministic URL. If a site already existed under this name, it will be overwritten. Can only contain the following characters: `0-9`, `a-z`, `A-Z`, `-`, `!`, `_`, `.`, `*`, `'`, `(`, `)`
```
-npx remotion lambda sites create src/index.tsx --site-name=my-project
+npx remotion lambda sites create src/index.ts --site-name=my-project
```
<details>
diff --git a/packages/docs/docs/lambda/deploysite.md b/packages/docs/docs/lambda/deploysite.md
index cb33619ff8..9018ca4936 100644
--- a/packages/docs/docs/lambda/deploysite.md
+++ b/packages/docs/docs/lambda/deploysite.md
@@ -19,7 +19,7 @@ import { deploySite } from "@remotion/lambda";
import path from "path";
const { serveUrl } = await deploySite({
- entryPoint: path.resolve(process.cwd(), "src/index.tsx"),
+ entryPoint: path.resolve(process.cwd(), "src/index.ts"),
bucketName: "remotionlambda-c7fsl3d",
region: "us-east-1",
options: {
diff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.md
index b2d6058ead..809838eb64 100644
--- a/packages/docs/docs/lambda/setup.md
+++ b/packages/docs/docs/lambda/setup.md
@@ -165,7 +165,7 @@ values={[
Run the following command to deploy your Remotion project to an S3 bucket. Pass as the last argument the entry file of the project - this is the file where [`registerRoot()`](/docs/register-root) is called.
```bash
-npx remotion lambda sites create src/index.tsx --site-name=my-video
+npx remotion lambda sites create src/index.ts --site-name=my-video
```
A `serveUrl` will be printed pointing to the deployed project.
@@ -202,7 +202,7 @@ const { bucketName } = await getOrCreateBucket({
// ---cut---
const { serveUrl } = await deploySite({
bucketName,
- entryPoint: path.resolve(process.cwd(), "src/index.tsx"),
+ entryPoint: path.resolve(process.cwd(), "src/index.ts"),
region: "us-east-1",
siteName: "my-video",
});
diff --git a/packages/docs/docs/miscellaneous/render-all.md b/packages/docs/docs/miscellaneous/render-all.md
index e65350a397..b980dd2c4b 100644
--- a/packages/docs/docs/miscellaneous/render-all.md
+++ b/packages/docs/docs/miscellaneous/render-all.md
@@ -10,11 +10,11 @@ In some scenarios, you might find it useful to render all compositions.
You can combine the [`npx remotion compositions`](/docs/cli/compositions) command with a bash loop:
```sh title="render-all.sh"
-compositions=($(npx remotion compositions src/index.tsx -q))
+compositions=($(npx remotion compositions src/index.ts -q))
for composition in "${compositions[@]}"
do
- npx remotion render src/index.tsx $composition $composition.mp4
+ npx remotion render src/index.ts $composition $composition.mp4
done
```
@@ -38,7 +38,7 @@ import { getCompositions, renderMedia } from "@remotion/renderer";
const start = async () => {
const bundled = await bundle({
- entryPoint: require.resolve("./src/index.tsx"),
+ entryPoint: require.resolve("./src/index.ts"),
// If you have a Webpack override, make sure to add it here
webpackOverride: (config) => config,
});
diff --git a/packages/docs/docs/overwriting-webpack-config.md b/packages/docs/docs/overwriting-webpack-config.md
index 5c8f3e344f..fe47e78f69 100644
--- a/packages/docs/docs/overwriting-webpack-config.md
+++ b/packages/docs/docs/overwriting-webpack-config.md
@@ -334,7 +334,7 @@ import { enableGlsl } from "./src/enable-glsl";
Config.Bundling.overrideWebpackConfig(enableGlsl);
```
-3. Add the following to your entry file (e.g. `src/index.tsx`):
+3. Add the following to your [entry point](/docs/terminology#entry-point) (e.g. `src/index.ts`):
```ts
declare module "*.glsl" {
diff --git a/packages/docs/docs/parametrized-rendering.md b/packages/docs/docs/parametrized-rendering.md
index 6d4de099bd..410e9ea9f5 100644
--- a/packages/docs/docs/parametrized-rendering.md
+++ b/packages/docs/docs/parametrized-rendering.md
@@ -36,7 +36,6 @@ export const MyComponent: React.FC<{ propOne: string; propTwo: number }> = () =>
null;
// @filename: Root.tsx
-import React from "react";
// ---cut---
import { Composition } from "remotion";
import { MyComponent } from "./MyComponent";
@@ -74,13 +73,13 @@ When rendering (for example using the `npm run build` script defined in `package
**Using inline JSON**
```bash
-npx remotion render src/index.tsx HelloWorld out/helloworld.mp4 --props='{"propOne": "Hi", "propTwo": 10}'
+npx remotion render src/index.ts HelloWorld out/helloworld.mp4 --props='{"propOne": "Hi", "propTwo": 10}'
```
**Using a file path:**
```bash
-npx remotion render src/index.tsx HelloWorld out/helloworld.mp4 --props=./path/to/props.json
+npx remotion render src/index.ts HelloWorld out/helloworld.mp4 --props=./path/to/props.json
```
[See also: CLI flags](/docs/cli)
diff --git a/packages/docs/docs/render.md b/packages/docs/docs/render.md
index a51594d27a..1eb662c3b0 100644
--- a/packages/docs/docs/render.md
+++ b/packages/docs/docs/render.md
@@ -12,7 +12,7 @@ npm run build
The underlying command in package.json is defined as follows:
```bash
-npx remotion render src/index.tsx HelloWorld out/video.mp4
+npx remotion render src/index.ts HelloWorld out/video.mp4
```
Modify it to select a different video to render, or change its output location.
diff --git a/packages/docs/docs/skia/skia.md b/packages/docs/docs/skia/skia.md
index 2b50ce98aa..e7290a3236 100644
--- a/packages/docs/docs/skia/skia.md
+++ b/packages/docs/docs/skia/skia.md
@@ -70,9 +70,9 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {
});
```
-Next, you need to refactor entrypoint file (most commonly `src/index.tsx`) to first load the Skia WebAssembly binary before calling registerRoot():
+Next, you need to refactor entrypoint file (most commonly `src/index.ts`) to first load the Skia WebAssembly binary before calling registerRoot():
-```ts twoslash title="src/index.tsx"
+```ts twoslash title="src/index.ts"
// @filename: ./Video.tsx
export const RemotionVideo = () => <></>;
@@ -132,7 +132,7 @@ pnpm create video -- --skia
By default Remotion rendering are done on the CPU. Some Skia effects rely on advanced GPU features, which may be slow to run on the CPU depending on the kind of effect you are using. If your Skia export is extremely slow, we found that enabling the GPU via the `--gl=angle` option improves things substantially. Please check out the documentation on [GPU rendering](/docs/gpu).
```sh
-remotion render src/index.tsx Main out/video.mp4 --gl=angle
+remotion render src/index.ts Main out/video.mp4 --gl=angle
```
## Resources
diff --git a/packages/docs/docs/stills.md b/packages/docs/docs/stills.md
index 0132ddf3cf..ed64536ad8 100644
--- a/packages/docs/docs/stills.md
+++ b/packages/docs/docs/stills.md
@@ -18,7 +18,7 @@ Use the [`<Still />`](/docs/still) component instead of the [`<Composition />`](
You can use the [`npx remotion still`](/docs/cli/#npx-remotion-still) command to render a still image. Example command:
```bash
-npx remotion still --props='{"custom": "data"}' src/index.tsx my-comp out.png
+npx remotion still --props='{"custom": "data"}' src/index.ts my-comp out.png
```
You can use the `--image-format` flag to determine the output format. The default format is `png`, with `jpeg` being the other option.
diff --git a/packages/docs/docs/terminology.md b/packages/docs/docs/terminology.md
index 18f23b9bc7..c9d158e75e 100644
--- a/packages/docs/docs/terminology.md
+++ b/packages/docs/docs/terminology.md
@@ -44,7 +44,7 @@ The Remotion Root is the directory in which Remotion commands get executed in. I
## Entry point
-The entry point is the file where the Remotion CLI and Node.JS APIs will look for a Remotion project. By default in most templates, it is `src/index.tsx`. The entry point can be passed to the render command, for example: `npx remotion render src/index.tsx`. The entry point should call [`registerRoot()`](/docs/register-root).
+The entry point is the file where the Remotion CLI and Node.JS APIs will look for a Remotion project. By default in most templates, it is `src/index.ts`. The entry point can be passed to the render command, for example: `npx remotion render src/index.ts`. The entry point should call [`registerRoot()`](/docs/register-root).
In the [Remotion Player](#remotion-player), there is no concept of an entry point. You directly pass a React component and metadata to the [`<Player>`](/docs/player/player).
diff --git a/packages/docs/docs/timeline.md b/packages/docs/docs/timeline.md
index bf46550989..7de676af65 100644
--- a/packages/docs/docs/timeline.md
+++ b/packages/docs/docs/timeline.md
@@ -12,10 +12,10 @@ npm start
This is a shorthand for
```bash
-npx remotion preview src/index.tsx
+npx remotion preview src/index.ts
```
-where `src/index.tsx` is the file where [`registerRoot()`](/docs/register-root) is called.
+where `src/index.ts` is the file where [`registerRoot()`](/docs/register-root) is called.
A server will be started on port 3000 (or 3001 if it's not available, and so on) and the preview should open in the browser.
diff --git a/packages/docs/docs/transparent-videos.mdx b/packages/docs/docs/transparent-videos.md
similarity index 94%
rename from packages/docs/docs/transparent-videos.mdx
rename to packages/docs/docs/transparent-videos.md
index 84bd24fe48..6526c1ff4f 100644
--- a/packages/docs/docs/transparent-videos.mdx
+++ b/packages/docs/docs/transparent-videos.md
@@ -101,8 +101,8 @@ You can then have separate render commands in your package.json:
```json
"scripts": {
- "render": "remotion render src/index.tsx my-video video.mp4",
- "render-transparent": "remotion render src/index.tsx --image-format=png --pixel-format=yuva420p --codec=vp8 my-video video-transparent.webm"
+ "render": "remotion render src/index.ts my-video video.mp4",
+ "render-transparent": "remotion render src/index.ts --image-format=png --pixel-format=yuva420p --codec=vp8 my-video video-transparent.webm"
}
```
diff --git a/packages/docs/docs/using-audio.md b/packages/docs/docs/using-audio.md
index 1f7bbef7cf..08ce9400b4 100644
--- a/packages/docs/docs/using-audio.md
+++ b/packages/docs/docs/using-audio.md
@@ -181,13 +181,13 @@ values={[
To render only the audio via CLI, specify an extension when exporting via CLI:
```
-npx remotion render src/index.tsx my-comp out/audio.mp3
+npx remotion render src/index.ts my-comp out/audio.mp3
```
or use the `--codec` flag to automatically choose a good output file name:
```
-npx remotion render src/index.tsx my-comp --codec=mp3
+npx remotion render src/index.ts my-comp --codec=mp3
```
</TabItem>
diff --git a/packages/example/render-all.ts b/packages/example/render-all.ts
index b03ffcd048..b14f90a3c4 100644
--- a/packages/example/render-all.ts
+++ b/packages/example/render-all.ts
@@ -4,7 +4,7 @@ import {webpackOverride} from './src/webpack-override';
const start = async () => {
const bundled = await bundle({
- entryPoint: require.resolve('./src/index.tsx'),
+ entryPoint: require.resolve('./src/index.ts'),
webpackOverride,
});
diff --git a/packages/example/renderall.sh b/packages/example/renderall.sh
index cf6f4a74ad..500e476cf6 100644
--- a/packages/example/renderall.sh
+++ b/packages/example/renderall.sh
@@ -1,8 +1,8 @@
-compositions=($(npx remotion compositions src/index.tsx -q))
+compositions=($(npx remotion compositions src/index.ts -q))
for composition in "${compositions[@]}"
do
echo $composition
- npx remotion render src/index.tsx $composition $composition.mp4
+ npx remotion render src/index.ts $composition $composition.mp4
done
diff --git a/packages/example/src/SkipZeroFrame/index.tsx b/packages/example/src/SkipZeroFrame/index.tsx
index 5faf388386..2021a0a9bf 100644
--- a/packages/example/src/SkipZeroFrame/index.tsx
+++ b/packages/example/src/SkipZeroFrame/index.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import {useCurrentFrame} from 'remotion';
// Try to render using:
-// npx remotion render src/index.tsx skip-zero-frame --frames=10-20 skip.mp4
+// npx remotion render src/index.ts skip-zero-frame --frames=10-20 skip.mp4
export const SkipZeroFrame: React.FC = () => {
const frame = useCurrentFrame();
diff --git a/packages/example/src/index.tsx b/packages/example/src/index.ts
similarity index 100%
rename from packages/example/src/index.tsx
rename to packages/example/src/index.ts
diff --git a/packages/example/src/simulate-lambda.ts b/packages/example/src/simulate-lambda.ts
index 999e11cbda..80b19aa62f 100644
--- a/packages/example/src/simulate-lambda.ts
+++ b/packages/example/src/simulate-lambda.ts
@@ -10,7 +10,7 @@ import {webpackOverride} from './webpack-override';
const start = async () => {
const bundled = await bundle({
- entryPoint: './src/index.tsx',
+ entryPoint: './src/index.ts',
webpackOverride,
});
diff --git a/packages/example/src/test/stills.test.ts b/packages/example/src/test/stills.test.ts
index f9c470ff39..73b594c7d3 100644
--- a/packages/example/src/test/stills.test.ts
+++ b/packages/example/src/test/stills.test.ts
@@ -15,7 +15,7 @@ test(
'Can render a still using Node.JS APIs',
async () => {
const bundled = await bundle({
- entryPoint: path.join(process.cwd(), 'src/index.tsx'),
+ entryPoint: path.join(process.cwd(), 'src/index.ts'),
webpackOverride,
});
@@ -63,7 +63,7 @@ test(
expect(() =>
renderStill({
composition,
- output: 'src/index.tsx',
+ output: 'src/index.ts',
serveUrl,
overwrite: false,
})
diff --git a/packages/it-tests/src/rendering/compositions.test.ts b/packages/it-tests/src/rendering/compositions.test.ts
index 05750c401d..6d0668f6a9 100644
--- a/packages/it-tests/src/rendering/compositions.test.ts
+++ b/packages/it-tests/src/rendering/compositions.test.ts
@@ -5,7 +5,7 @@ import { expect, test } from "vitest";
test("Should be able to call pnpm exec compositions", async () => {
const task = await execa(
"pnpm",
- ["exec", "remotion", "compositions", "src/index.tsx"],
+ ["exec", "remotion", "compositions", "src/index.ts"],
{
cwd: path.join(process.cwd(), "..", "example"),
}
diff --git a/packages/it-tests/src/rendering/render-scale.test.ts b/packages/it-tests/src/rendering/render-scale.test.ts
index 0f469dacc0..e6002b06d0 100644
--- a/packages/it-tests/src/rendering/render-scale.test.ts
+++ b/packages/it-tests/src/rendering/render-scale.test.ts
@@ -18,7 +18,7 @@ test("Should be able to render video with scale 2", async () => {
"exec",
"remotion",
"render",
- "src/index.tsx",
+ "src/index.ts",
"ten-frame-tester",
"--frames",
"0-1",
@@ -52,7 +52,7 @@ test("Should be able to render video with scale 0.1", async () => {
"exec",
"remotion",
"render",
- "src/index.tsx",
+ "src/index.ts",
"ten-frame-tester",
"--frames",
"0-1",