Skip to content

🎥 Make videos programmatically with React

Monorepo: Delete `tsconfig.tsbuildinfo` before release to force re-build

Jonny Burger1211358c5f82
diff --git a/set-version.ts b/set-version.ts
index a44a0b193f..d1fe88017f 100644
--- a/set-version.ts
+++ b/set-version.ts
@@ -5,6 +5,7 @@ import {
lstatSync,
readFileSync,
readdirSync,
+ unlinkSync,
writeFileSync,
} from 'fs';
import path from 'path';
@@ -43,6 +44,16 @@ for (const dir of [path.join('cloudrun', 'container'), ...dirs]) {
dir,
'package.json',
);
+ const tsconfigBuildPath = path.join(
+ process.cwd(),
+ 'packages',
+ dir,
+ 'tsconfig.tsbuildinfo',
+ );
+ if (existsSync(tsconfigBuildPath)) {
+ unlinkSync(tsconfigBuildPath);
+ }
+
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
packageJson.version = version;
writeFileSync(