From c794c14d34a8feabc1b085171f69bce49a67423b Mon Sep 17 00:00:00 2001 From: Hui Zhao <10602282+HuiSF@users.noreply.github.com> Date: Thu, 2 May 2024 14:44:54 -0700 Subject: [PATCH] chore(repo): add --forceExit to rollup command (#13331) --- packages/adapter-nextjs/package.json | 2 +- packages/analytics/package.json | 2 +- packages/api-graphql/package.json | 2 +- packages/api-rest/package.json | 2 +- packages/api/package.json | 2 +- packages/auth/package.json | 2 +- packages/aws-amplify/package.json | 2 +- packages/core/package.json | 2 +- packages/datastore-storage-adapter/package.json | 2 +- packages/datastore/package.json | 2 +- packages/geo/package.json | 2 +- packages/interactions/package.json | 2 +- packages/notifications/package.json | 2 +- packages/predictions/package.json | 2 +- packages/pubsub/package.json | 4 ++-- packages/react-native/package.json | 2 +- packages/rtn-push-notification/package.json | 2 +- packages/rtn-web-browser/package.json | 2 +- packages/storage/package.json | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index e29ef63616a..df06139955a 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -60,7 +60,7 @@ "scripts": { "build": "npm run clean && npm run build:esm-cjs", "build-with-test": "npm test && npm run build", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "clean": "npm run clean:size && rimraf dist", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 50da64d17bd..9b882e632e7 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -14,7 +14,7 @@ "test": "npm run lint && jest -w 1 --coverage --logHeapUsage", "build-with-test": "npm run clean && npm run test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 55ad528801e..2daf9136d8a 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -18,7 +18,7 @@ "test:watch": "tslint 'src/**/*.ts' && jest -w 1 --watch", "build-with-test": "npm test && npm build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 64a3abe7fde..4f3fd81c839 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -15,7 +15,7 @@ "test:watch": "tslint 'src/**/*.ts' && jest -w 1 --watch", "build-with-test": "npm test && npm build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/api/package.json b/packages/api/package.json index 98bff622393..4eea4911bb9 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -17,7 +17,7 @@ "test": "npm run lint && jest -w 1 --coverage --logHeapUsage", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/auth/package.json b/packages/auth/package.json index 3e66125d20a..494fce7fe53 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -19,7 +19,7 @@ "test": "yarn lint --fix && jest -w 1 --coverage --logHeapUsage", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf lib-esm lib dist", diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 6bcb6ddc582..20fa124d423 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -239,7 +239,7 @@ "test:size": "size-limit", "build-with-test": "npm run clean && npm test && tsc && webpack -p", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf lib-esm lib dist", diff --git a/packages/core/package.json b/packages/core/package.json index 759d8aa3b7d..1e3245bdf98 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,7 +20,7 @@ "test:size": "size-limit", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run generate-version && npm run build:esm-cjs && npm run build:umd", "generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify", diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index 6dae0abcee7..31f290b0d0f 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -13,7 +13,7 @@ "test": "npm run lint && jest -w 1 --coverage --logHeapUsage", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf dist lib lib-esm", diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 31bfd2cbe38..041843344c6 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -18,7 +18,7 @@ "test:size": "size-limit", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/geo/package.json b/packages/geo/package.json index 96029d70793..c0b8f40b2ae 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -18,7 +18,7 @@ "test:size": "size-limit", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 90c53bd156f..8f9e26d7e04 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -15,7 +15,7 @@ "test:size": "size-limit", "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 79edf890aa6..e2b908b30ee 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -15,7 +15,7 @@ "test:watch": "tslint 'src/**/*.ts' && jest -w 1 --watch", "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/predictions/package.json b/packages/predictions/package.json index f3c64a235e0..bdeaa6202e4 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -15,7 +15,7 @@ "test:size": "size-limit", "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 17e5cab8a35..fde263ffe38 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -15,8 +15,8 @@ "test:size": "size-limit", "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor", - "build:watch": "mkdirp dist/esm/vendor && mkdirp dist/cjs/vendor && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor && rollup -c rollup.config.mjs --watch", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor", + "build:watch": "mkdirp dist/esm/vendor && mkdirp dist/cjs/vendor && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor && rollup --forceExit -c rollup.config.mjs --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "clean:size": "rimraf dual-publish-tmp tmp*", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 3aebd6de1cf..b639c576f95 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -14,7 +14,7 @@ "test": "tslint 'src/**/*.ts'", "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf lib-esm lib dist", diff --git a/packages/rtn-push-notification/package.json b/packages/rtn-push-notification/package.json index ac0f26025e1..712cce11806 100644 --- a/packages/rtn-push-notification/package.json +++ b/packages/rtn-push-notification/package.json @@ -14,7 +14,7 @@ "test": "npm run lint && jest -w 1 --coverage --logHeapUsage", "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf lib-esm lib dist", diff --git a/packages/rtn-web-browser/package.json b/packages/rtn-web-browser/package.json index f4813648aae..d19fdec72f1 100644 --- a/packages/rtn-web-browser/package.json +++ b/packages/rtn-web-browser/package.json @@ -14,7 +14,7 @@ "test": "tslint 'src/**/*.ts'", "test:android": "./android/gradlew test -p ./android", "build-with-test": "npm run clean && npm test && tsc", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs", "clean": "rimraf dist lib lib-esm", diff --git a/packages/storage/package.json b/packages/storage/package.json index a9121fce3dd..e4df9764636 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -25,7 +25,7 @@ "test": "npm run lint && jest -w 1 --coverage --logHeapUsage", "build-with-test": "npm test && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", - "build:esm-cjs": "rollup -c rollup.config.mjs", + "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", "build:watch": "npm run build:esm-cjs -- --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf lib-esm lib dist",