Skip to content

Commit

Permalink
Fix React and Angular exports (#6193)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
tnorling authored Jul 5, 2023
1 parent 32df7b9 commit faae9de
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Remove unused main field in package.json #6190",
"packageName": "@azure/msal-angular",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Fix module field in package.json #6190",
"packageName": "@azure/msal-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
3 changes: 1 addition & 2 deletions lib/msal-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -79,4 +78,4 @@
"@azure/msal-browser": "^3.0.0-beta.0",
"rxjs": "^7.0.0"
}
}
}
4 changes: 2 additions & 2 deletions lib/msal-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -67,4 +67,4 @@
"@rollup/plugin-typescript": "^11.1.0",
"rollup": "^3.20.2"
}
}
}

0 comments on commit faae9de

Please sign in to comment.