Skip to content

🎥 Make videos programmatically with React

set up TS references correctly

Jonny Burger0310e26d83ca
diff --git a/packages/docs/tsconfig.json b/packages/docs/tsconfig.json
index a846bbc651..567f3feb17 100644
--- a/packages/docs/tsconfig.json
+++ b/packages/docs/tsconfig.json
@@ -10,5 +10,25 @@
"target": "ES2019",
"moduleResolution": "node"
},
- "references": [{ "path": "../player" }]
+ "references": [
+ { "path": "../player" },
+ { "path": "../core" },
+ { "path": "../media-utils" },
+ { "path": "../babel-loader" },
+ { "path": "../lottie" },
+ { "path": "../noise" },
+ { "path": "../paths" },
+ { "path": "../preload" },
+ { "path": "../rive" },
+ { "path": "../skia" },
+ { "path": "../three" },
+ { "path": "../google-fonts" },
+ { "path": "../shapes" },
+ { "path": "../gif" },
+ { "path": "../motion-blur" },
+ { "path": "../lambda" },
+ { "path": "../bundler" },
+ { "path": "../renderer" },
+ { "path": "../cli" }
+ ]
}
diff --git a/packages/eslint-config/tsconfig.json b/packages/eslint-config/tsconfig.json
index 63c908d96a..d28bd8fa9a 100644
--- a/packages/eslint-config/tsconfig.json
+++ b/packages/eslint-config/tsconfig.json
@@ -6,5 +6,10 @@
"skipLibCheck": true,
"jsx": "react-jsx"
},
- "include": ["./src"]
+ "include": ["./src"],
+ "references": [
+ {
+ "path": "../eslint-plugin"
+ }
+ ]
}
diff --git a/packages/example-without-zod/tsconfig.json b/packages/example-without-zod/tsconfig.json
index 3d0e8d0b4b..57a8c9a8d1 100644
--- a/packages/example-without-zod/tsconfig.json
+++ b/packages/example-without-zod/tsconfig.json
@@ -11,12 +11,5 @@
}
},
"include": ["src"],
- "references": [
- { "path": "../core" },
- { "path": "../media-utils" },
- { "path": "../babel-loader" },
- { "path": "../three" },
- { "path": "../rive" },
- { "path": "../motion-blur" }
- ]
+ "references": [{ "path": "../core" }, { "path": "../cli" }]
}
diff --git a/packages/example/tsconfig.json b/packages/example/tsconfig.json
index d4a0abb8e2..214cb8dc7e 100644
--- a/packages/example/tsconfig.json
+++ b/packages/example/tsconfig.json
@@ -13,10 +13,23 @@
"include": ["src"],
"references": [
{"path": "../core"},
- {"path": "../media-utils"},
{"path": "../babel-loader"},
- {"path": "../three"},
+ {"path": "../bundler"},
+ {"path": "../cli"},
+ {"path": "../eslint-config"},
+ {"path": "../eslint-plugin"},
+ {"path": "../gif"},
+ {"path": "../google-fonts"},
+ {"path": "../lambda"},
+ {"path": "../lottie"},
+ {"path": "../media-utils"},
+ {"path": "../motion-blur"},
+ {"path": "../paths"},
+ {"path": "../renderer"},
{"path": "../rive"},
- {"path": "../motion-blur"}
+ {"path": "../shapes"},
+ {"path": "../skia"},
+ {"path": "../three"},
+ {"path": "../zod-types"}
]
}
diff --git a/packages/google-fonts/tsconfig-esm.json b/packages/google-fonts/tsconfig-esm.json
index 3eea7db182..a87d2f291c 100644
--- a/packages/google-fonts/tsconfig-esm.json
+++ b/packages/google-fonts/tsconfig-esm.json
@@ -7,5 +7,6 @@
"noUnusedLocals": true,
"outDir": "./dist/esm"
},
- "include": ["./src"]
+ "include": ["./src"],
+ "references": [{ "path": "../core" }]
}
diff --git a/packages/google-fonts/tsconfig.json b/packages/google-fonts/tsconfig.json
index b7e2f7170d..b56ae6387e 100644
--- a/packages/google-fonts/tsconfig.json
+++ b/packages/google-fonts/tsconfig.json
@@ -7,5 +7,6 @@
"noUnusedLocals": true,
"outDir": "./dist/cjs"
},
- "include": ["./src"]
+ "include": ["./src"],
+ "references": [{ "path": "../core" }]
}
diff --git a/packages/it-tests/tsconfig.json b/packages/it-tests/tsconfig.json
index db4bf79774..8bed676936 100644
--- a/packages/it-tests/tsconfig.json
+++ b/packages/it-tests/tsconfig.json
@@ -13,5 +13,22 @@
"resolveJsonModule": true,
"incremental": true,
"noUnusedLocals": true
- }
+ },
+ "references": [
+ {
+ "path": "../bundler"
+ },
+ {
+ "path": "../core"
+ },
+ {
+ "path": "../lambda"
+ },
+ {
+ "path": "../renderer"
+ },
+ {
+ "path": "../cli"
+ }
+ ]
}
diff --git a/packages/lambda/tsconfig.json b/packages/lambda/tsconfig.json
index 2e3dae5cd5..76b9996af8 100644
--- a/packages/lambda/tsconfig.json
+++ b/packages/lambda/tsconfig.json
@@ -10,6 +10,7 @@
"references": [
{"path": "../core"},
{"path": "../bundler"},
+ {"path": "../cli"},
{"path": "../renderer"}
]
}
diff --git a/packages/preload/tsconfig.json b/packages/preload/tsconfig.json
index eca5bbf635..f5c5851758 100644
--- a/packages/preload/tsconfig.json
+++ b/packages/preload/tsconfig.json
@@ -4,10 +4,5 @@
"rootDir": "src",
"outDir": "dist",
"skipLibCheck": true
- },
- "references": [
- {
- "path": "../core"
- }
- ]
+ }
}
diff --git a/packages/renderer/tsconfig.json b/packages/renderer/tsconfig.json
index c6859481ba..e11c6a0394 100644
--- a/packages/renderer/tsconfig.json
+++ b/packages/renderer/tsconfig.json
@@ -5,6 +5,6 @@
"outDir": "dist"
},
"include": ["src"],
- "references": [{"path": "../core"}, {"path": "../bundler"}],
+ "references": [{"path": "../core"}],
"exclude": ["vitest.config.ts"]
}
diff --git a/packages/shapes/tsconfig.json b/packages/shapes/tsconfig.json
index 2adfdbe14d..bf7a7f65e2 100644
--- a/packages/shapes/tsconfig.json
+++ b/packages/shapes/tsconfig.json
@@ -8,6 +8,9 @@
"references": [
{
"path": "../core"
+ },
+ {
+ "path": "../shapes"
}
]
}