Skip to content

🎥 Make videos programmatically with React

Improve TypeScript caching

Jonny Burger95ceec4cfb62
diff --git a/packages/docs/tsconfig.json b/packages/docs/tsconfig.json
index ce2e67ad82..5e59692dad 100644
--- a/packages/docs/tsconfig.json
+++ b/packages/docs/tsconfig.json
@@ -11,7 +11,8 @@
"noImplicitAny": false,
"strictNullChecks": false,
"strict": false,
- "noEmit": true
+ "noEmit": true,
+ "incremental": true
},
"paths": {
"@site/*": ["./*"]
diff --git a/packages/it-tests/src/templates/validate-templates.test.ts b/packages/it-tests/src/templates/validate-templates.test.ts
index e4ab78db0d..68fac729a6 100644
--- a/packages/it-tests/src/templates/validate-templates.test.ts
+++ b/packages/it-tests/src/templates/validate-templates.test.ts
@@ -118,7 +118,7 @@ describe('Templates should be valid', () => {
expect(contents).not.toContain('Config.Preview');
});
- it(`${template.shortName} should use noUnusedLocals`, async () => {
+ it(`${template.shortName} should use good tsconfig values`, async () => {
if (template.shortName.includes('JavaScript')) {
return;
}
@@ -131,6 +131,11 @@ describe('Templates should be valid', () => {
} else {
expect(contents).toInclude('noUnusedLocals": true');
}
+ if (!template.shortName.includes('Still')) {
+ expect(contents).not.toInclude('outDir');
+ }
+ expect(contents).toInclude('"forceConsistentCasingInFileNames": true');
+ expect(contents).toInclude('"incremental": true');
});
it(`${template.shortName} should use correct prettier`, async () => {
diff --git a/packages/template-audiogram/tsconfig.json b/packages/template-audiogram/tsconfig.json
index faa8d16d1e..7c0e363719 100644
--- a/packages/template-audiogram/tsconfig.json
+++ b/packages/template-audiogram/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-blank/tsconfig.json b/packages/template-blank/tsconfig.json
index faa8d16d1e..7c0e363719 100644
--- a/packages/template-blank/tsconfig.json
+++ b/packages/template-blank/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-code-hike/tsconfig.json b/packages/template-code-hike/tsconfig.json
index a1c86cde4e..9147c0c677 100644
--- a/packages/template-code-hike/tsconfig.json
+++ b/packages/template-code-hike/tsconfig.json
@@ -4,14 +4,14 @@
"module": "Preserve",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["ES2021"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["public", "remotion.config.ts"]
}
diff --git a/packages/template-helloworld/tsconfig.json b/packages/template-helloworld/tsconfig.json
index faa8d16d1e..7c0e363719 100644
--- a/packages/template-helloworld/tsconfig.json
+++ b/packages/template-helloworld/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-overlay/tsconfig.json b/packages/template-overlay/tsconfig.json
index faa8d16d1e..7c0e363719 100644
--- a/packages/template-overlay/tsconfig.json
+++ b/packages/template-overlay/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-remix/tsconfig.json b/packages/template-remix/tsconfig.json
index 778ed59059..4213bab4d9 100644
--- a/packages/template-remix/tsconfig.json
+++ b/packages/template-remix/tsconfig.json
@@ -17,7 +17,8 @@
"paths": {
"~/*": ["./app/*"]
},
- "noEmit": true
+ "noEmit": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-skia/tsconfig.json b/packages/template-skia/tsconfig.json
index 3e0e970460..07d21300ac 100644
--- a/packages/template-skia/tsconfig.json
+++ b/packages/template-skia/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": false
+ "noUnusedLocals": false,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-stargazer/tsconfig.json b/packages/template-stargazer/tsconfig.json
index e7291f0bc0..d432073481 100644
--- a/packages/template-stargazer/tsconfig.json
+++ b/packages/template-stargazer/tsconfig.json
@@ -3,7 +3,6 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015", "DOM"],
@@ -11,7 +10,8 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-still/tsconfig.json b/packages/template-still/tsconfig.json
index 9112e81d0f..0f5742b379 100644
--- a/packages/template-still/tsconfig.json
+++ b/packages/template-still/tsconfig.json
@@ -10,7 +10,8 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-three/tsconfig.json b/packages/template-three/tsconfig.json
index faa8d16d1e..7c0e363719 100644
--- a/packages/template-three/tsconfig.json
+++ b/packages/template-three/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-tiktok/tsconfig.json b/packages/template-tiktok/tsconfig.json
index faa8d16d1e..7c0e363719 100644
--- a/packages/template-tiktok/tsconfig.json
+++ b/packages/template-tiktok/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-tts-azure/tsconfig.json b/packages/template-tts-azure/tsconfig.json
index 06571f9bf7..93b0ed0c11 100644
--- a/packages/template-tts-azure/tsconfig.json
+++ b/packages/template-tts-azure/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015", "DOM"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}
diff --git a/packages/template-tts-google/tsconfig.json b/packages/template-tts-google/tsconfig.json
index 06571f9bf7..93b0ed0c11 100644
--- a/packages/template-tts-google/tsconfig.json
+++ b/packages/template-tts-google/tsconfig.json
@@ -3,14 +3,14 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
- "outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015", "DOM"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "noUnusedLocals": true
+ "noUnusedLocals": true,
+ "incremental": true
},
"exclude": ["remotion.config.ts"]
}