From b9dff0337d51df6ca9b0fa1b128193881164a0b0 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 16 Aug 2023 09:55:30 +0200 Subject: [PATCH] fix: clean client cache when feature flags change (#51285) --- client/tools/create-env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tools/create-env.ts b/client/tools/create-env.ts index 476c5bf3296..6192e32bfd6 100644 --- a/client/tools/create-env.ts +++ b/client/tools/create-env.ts @@ -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);