Skip to content

🎥 Make videos programmatically with React

move rust stuff back to target

Jonny Burger2202c74fe961
diff --git a/packages/.cargo/config.toml b/packages/.cargo/config.toml
index 4f51071de7..c6f990a790 100644
--- a/packages/.cargo/config.toml
+++ b/packages/.cargo/config.toml
@@ -2,7 +2,6 @@
# only searches 1 level for Cargofiles
[build]
-# Calling the directory "dist" so it gets cached by turborepo
-# TODO: Change it to not conflict with JS
+# Calling the directory "target" and adding it to turbo.json
# TODO: Add libc field to JS
-target-dir = "compositor/dist"
+target-dir = "compositor/target"
diff --git a/packages/compositor/.gitignore b/packages/compositor/.gitignore
new file mode 100644
index 0000000000..eb5a316cbd
--- /dev/null
+++ b/packages/compositor/.gitignore
@@ -0,0 +1 @@
+target
diff --git a/packages/compositor/package.json b/packages/compositor/package.json
index 5b845967b6..f6e271003d 100644
--- a/packages/compositor/package.json
+++ b/packages/compositor/package.json
@@ -7,7 +7,7 @@
"dist"
],
"scripts": {
- "build": "node build.mjs",
+ "build": "node build.mjs && tsc -d",
"watch": "tsc -w",
"build-all": "sh cross_compile.sh"
},
diff --git a/turbo.json b/turbo.json
index f62685a65b..f5e0ba6d43 100644
--- a/turbo.json
+++ b/turbo.json
@@ -19,6 +19,10 @@
"outputs": ["src", ".cache-css", "*.js", "*.d.ts"],
"dependsOn": ["^build"]
},
+ "@remotion/compositor#build": {
+ "outputs": ["dist/**", "target/**"],
+ "dependsOn": ["^build"]
+ },
"@remotion/player-example#lint": {
"dependsOn": ["@remotion/eslint-config#build"]
},