Skip to content

Commit 871114b

Browse files
authored
fix(scripts): add --no-regenerate flag to help avoid flakey builds (#578)
1 parent 12cdb2c commit 871114b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/catppuccin-vsc/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import { updatePackageJson, readPackageJsonVersion } from "@/hooks/packageJson";
77
import generateThemes from "@/hooks/generateThemes";
88

99
const development = getFlag("--dev", Boolean);
10+
const shouldRegenerate = !getFlag("--no-regenerate", Boolean);
1011

1112
await generateThemes();
1213

1314
const packageJsonVersion = await readPackageJsonVersion();
14-
if (!development) {
15+
if (shouldRegenerate) {
1516
console.debug(
1617
`Regenerating package.json with version "${packageJsonVersion}"`,
1718
);

packages/catppuccin-vsc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@
193193
},
194194
"scripts": {
195195
"core:build": "tsx build.ts",
196-
"core:dev": "tsx build.ts --dev",
197-
"core:watch": "tsx watch build.ts --dev",
196+
"core:dev": "tsx build.ts --dev --no-regenerate",
197+
"core:watch": "tsx watch build.ts --dev --no-regenerate",
198198
"schema:ui": "tsx src/hooks/updateSchemas.ts"
199199
},
200200
"homepage": "https://github.com/catppuccin/vscode/tree/main/packages/catppuccin-vsc#readme"

0 commit comments

Comments
 (0)