From 0cfa6a6b0f0e9b786db06e6ba2260affa5235d0b Mon Sep 17 00:00:00 2001 From: Eddie Keller Date: Wed, 14 Apr 2021 10:24:01 -0700 Subject: [PATCH] chore(@aws-amplify/core): fix build:esm and build:esm:watch scripts --- packages/core/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 266ae7f999e..5ff43014f60 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -22,9 +22,9 @@ "test": "tslint 'src/**/*.ts' && jest -w 1 --coverage", "build-with-test": "npm test && npm run build", "build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js", - "build:esm": "node ./build es6", + "build:esm": "rimraf lib-esm && node ./build es6", "build:cjs:watch": "node ./build es5 --watch", - "build:esm:watch": "node ./build es6 --watch", + "build:esm:watch": "rimraf lib-esm && node ./build es6 --watch", "build": "npm run clean && npm run generate-version && npm run build:esm && npm run build:cjs", "generate-version": "genversion src/Platform/version.ts --es6 --semi", "clean": "rimraf lib-esm lib dist",