From faae9defff0424799bfa540fdb2c2f309b34db3a Mon Sep 17 00:00:00 2001 From: Thomas Norling Date: Wed, 5 Jul 2023 15:56:12 -0700 Subject: [PATCH] Fix React and Angular exports (#6193) - Removes main field from msal-angular, the file it points to doesn't exist and the Angular build step adds the relevant exports - Fixes the module field in msal-react to point to the correct file --- ...-msal-angular-8efd78c1-92ab-4c2a-ac45-0044359e2365.json | 7 +++++++ ...re-msal-react-52ca3a73-b606-443a-946c-a90644ba34be.json | 7 +++++++ lib/msal-angular/package.json | 3 +-- lib/msal-react/package.json | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 change/@azure-msal-angular-8efd78c1-92ab-4c2a-ac45-0044359e2365.json create mode 100644 change/@azure-msal-react-52ca3a73-b606-443a-946c-a90644ba34be.json diff --git a/change/@azure-msal-angular-8efd78c1-92ab-4c2a-ac45-0044359e2365.json b/change/@azure-msal-angular-8efd78c1-92ab-4c2a-ac45-0044359e2365.json new file mode 100644 index 0000000000..5f8a4c0b6a --- /dev/null +++ b/change/@azure-msal-angular-8efd78c1-92ab-4c2a-ac45-0044359e2365.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Remove unused main field in package.json #6190", + "packageName": "@azure/msal-angular", + "email": "thomas.norling@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@azure-msal-react-52ca3a73-b606-443a-946c-a90644ba34be.json b/change/@azure-msal-react-52ca3a73-b606-443a-946c-a90644ba34be.json new file mode 100644 index 0000000000..081b4cb76d --- /dev/null +++ b/change/@azure-msal-react-52ca3a73-b606-443a-946c-a90644ba34be.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix module field in package.json #6190", + "packageName": "@azure/msal-react", + "email": "thomas.norling@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/lib/msal-angular/package.json b/lib/msal-angular/package.json index 0793da7119..8e737715f6 100644 --- a/lib/msal-angular/package.json +++ b/lib/msal-angular/package.json @@ -35,7 +35,6 @@ "format:check": "npx prettier --ignore-path .gitignore --check src", "format:fix": "npx prettier --ignore-path .gitignore --write src" }, - "main": "./dist/bundles/azure-msal-angular.umd.js", "typings": "./dist/azure-msal-angular.d.ts", "beachball": { "disallowedChangeTypes": [ @@ -79,4 +78,4 @@ "@azure/msal-browser": "^3.0.0-beta.0", "rxjs": "^7.0.0" } -} +} \ No newline at end of file diff --git a/lib/msal-react/package.json b/lib/msal-react/package.json index 2594dc53b5..ba6fc7dde5 100644 --- a/lib/msal-react/package.json +++ b/lib/msal-react/package.json @@ -46,7 +46,7 @@ "@azure/msal-browser": "^3.0.0-beta.0", "react": "^16.8.0 || ^17 || ^18" }, - "module": "dist/msal-react.esm.js", + "module": "dist/index.js", "devDependencies": { "@azure/msal-browser": "^3.0.0-beta.0", "@testing-library/jest-dom": "^5.11.5", @@ -67,4 +67,4 @@ "@rollup/plugin-typescript": "^11.1.0", "rollup": "^3.20.2" } -} +} \ No newline at end of file