diff --git a/packages/core/package.json b/packages/core/package.json index 5d2cfb16..55441929 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,7 +18,7 @@ "type": "module", "types": "./dist/esm/types/index.d.ts", "scripts": { - "build": "rollup -c --environment FORMAT:cjs && rollup -c --environment FORMAT:esm" + "build": "rm -rf dist && rollup -c --environment FORMAT:cjs && rollup -c --environment FORMAT:esm" }, "repository": { "type": "git", diff --git a/packages/fetch-mock/package.json b/packages/fetch-mock/package.json index 4a41a5ab..a383345b 100644 --- a/packages/fetch-mock/package.json +++ b/packages/fetch-mock/package.json @@ -18,7 +18,7 @@ "types": "./dist/esm/types/index.d.ts", "type": "module", "scripts": { - "build": "rollup -c --environment FORMAT:cjs && rollup -c --environment FORMAT:esm", + "build": "rm -rf dist && rollup -c --environment FORMAT:cjs && rollup -c --environment FORMAT:esm", "types:check": "tsd -t types/index.d.ts -f types/index.test-d.ts" }, "repository": {