Skip to content

Commit

Permalink
chore: add fallback package exports (#745)
Browse files Browse the repository at this point in the history
When using TypeScript the exports field is not
working unless using moduleResolution node16,
which we don't want to enforce.

Instead, fallbacks are added back so that these
projects can still use moduleResolution node.
  • Loading branch information
steabert authored Mar 21, 2023
1 parent ee5142f commit b029dc9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
Expand Down
3 changes: 3 additions & 0 deletions player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
Expand Down
6 changes: 4 additions & 2 deletions scripts/changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ const ChangeLogHeader = `# Changelog
All notable changes to this project will be documented in this file.
`
const GitHubCompareUrl = 'https://github.com/AxisCommunications/media-stream-library-js/compare'
const GitHubCommitUrl = 'https://github.com/AxisCommunications/media-stream-library-js/commit'
const GitHubCompareUrl =
'https://github.com/AxisCommunications/media-stream-library-js/compare'
const GitHubCommitUrl =
'https://github.com/AxisCommunications/media-stream-library-js/commit'
const GroupTitles = {
'build': '\u{1F477} Build',
'chore': '\u{1F6A7} Maintenance',
Expand Down
5 changes: 5 additions & 0 deletions streams/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"types": "./dist/src/index.browser.d.ts",
"main": "./dist/node.cjs",
"module": "./dist/node.mjs",
"exports": {
"types": "./dist/src/index.browser.d.ts",
"browser": {
Expand All @@ -30,6 +33,8 @@
}
},
"browser": {
"./dist/node.cjs": "./dist/browser.cjs",
"./dist/node.mjs": "./dist/browser.mjs",
"stream": "stream-browserify"
},
"files": [
Expand Down

0 comments on commit b029dc9

Please sign in to comment.