fix: clean client cache when feature flags change (#51285)

This commit is contained in:
Oliver Eyton-Williams
2023-08-16 09:55:30 +02:00
committed by GitHub
parent a622414ae5
commit b9dff0337d
+1 -1
View File
@@ -126,7 +126,7 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
) {
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
console.log('Feature flags have been changed, cleaning client cache.');
const child = spawn('pnpm', ['run', 'clean:client']);
const child = spawn('pnpm', ['run', '-w', 'clean:client']);
child.stdout.setEncoding('utf8');
child.stdout.on('data', function (data) {
console.log(data);