From 3a796adcf55de1a5d22936d30332ab49ed39df01 Mon Sep 17 00:00:00 2001 From: Thomas Bowen <6600748+ttbowen@users.noreply.github.com> Date: Tue, 21 Nov 2023 21:59:52 +0000 Subject: [PATCH] Delete previously compiled JS files before building --- packages/mrwhale-discord/package.json | 2 +- packages/mrwhale-gamejolt/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mrwhale-discord/package.json b/packages/mrwhale-discord/package.json index b966338..2d7aa5b 100644 --- a/packages/mrwhale-discord/package.json +++ b/packages/mrwhale-discord/package.json @@ -19,7 +19,7 @@ }, "scripts": { "dev": "ts-node --transpile-only index.ts", - "start": "tsc && copyfiles ./images/*.png ./lib && node ./lib/index.js", + "start": "rm -rf ./lib && tsc && copyfiles ./images/*.png ./lib && node ./lib/index.js", "deploy-commands": "ts-node --transpile-only scripts/deploy-commands.ts" }, "bugs": { diff --git a/packages/mrwhale-gamejolt/package.json b/packages/mrwhale-gamejolt/package.json index 8bf39e0..b135c21 100644 --- a/packages/mrwhale-gamejolt/package.json +++ b/packages/mrwhale-gamejolt/package.json @@ -12,7 +12,7 @@ }, "scripts": { "dev": "ts-node --transpile-only index.ts", - "start": "tsc && copyfiles ./images/*.png ./lib && node ./lib/index.js" + "start": "rm -rf ./lib && tsc && copyfiles ./images/*.png ./lib && node ./lib/index.js" }, "bugs": { "url": "https://github.com/mrwhale-io/mrwhale/issues"