Skip to content

Commit

Permalink
Add main field to package.json (#7184)
Browse files Browse the repository at this point in the history
Adds main field to package.json to unblock usage with consumers that
don't understand the "exports" field & don't support ESM
  • Loading branch information
tnorling committed Jul 1, 2024
1 parent 2b60413 commit 586aa65
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Add main field to package.json",
"packageName": "@azure/msal-browser",
"email": "thomas.norling@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Add main field to package.json",
"packageName": "@azure/msal-common",
"email": "thomas.norling@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Add main field to package.json",
"packageName": "@azure/msal-node",
"email": "thomas.norling@microsoft.com",
"dependentChangeType": "patch"
}
3 changes: 2 additions & 1 deletion lib/msal-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"type": "module",
"sideEffects": false,
"main": "./lib/msal-browser.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -105,4 +106,4 @@
"dependencies": {
"@azure/msal-common": "14.12.0"
}
}
}
3 changes: 2 additions & 1 deletion lib/msal-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"oauth"
],
"sideEffects": false,
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -95,4 +96,4 @@
"typescript": "^4.9.5",
"yargs": "^17.5.1"
}
}
}
3 changes: 2 additions & 1 deletion lib/msal-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"oauth"
],
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -85,4 +86,4 @@
"engines": {
"node": ">=16"
}
}
}

0 comments on commit 586aa65

Please sign in to comment.