diff --git a/packages/core/src/AssetPack.ts b/packages/core/src/AssetPack.ts index 204dcd7..546b8c0 100644 --- a/packages/core/src/AssetPack.ts +++ b/packages/core/src/AssetPack.ts @@ -75,6 +75,8 @@ export class AssetPack } else { + Logger.warn('cache not found, clearing output folder'); + // to be safe - lets nuke the folder as the cache is empty fs.removeSync(this._outputPath); } diff --git a/packages/json/test/Json.test.ts b/packages/json/test/Json.test.ts index e609aed..085f136 100644 --- a/packages/json/test/Json.test.ts +++ b/packages/json/test/Json.test.ts @@ -121,6 +121,6 @@ describe('Json', () => const data = readFileSync(`${outputDir}/json/json.json`, 'utf8'); - expect(data.replace(/\\/g, '').trim()).toEqual(`{\"hello\":\"world\",\"Im\":\"not broken\"}`); + expect(data.replace(/\\/g, '').trim()).toEqual(`{"hello":"world","Im":"not broken"}`); }); });