Skip to content

Commit

Permalink
Add exports to package.json on 6.x branch
Browse files Browse the repository at this point in the history
This is along the same lines as #6192, but for the 6.x branch.

On Angular we're exploring changing our packaging to be based around ES modules and rxjs is currently a blocker, because it doesn't specify the `exports` field on the `package.json` in the 6.x branch like it does in 7.x. These changes add an identical configuration.
  • Loading branch information
crisbeto committed Sep 23, 2021
1 parent 881cacd commit 9f1142f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions package.json
Expand Up @@ -4,6 +4,37 @@
"description": "Reactive Extensions for modern JavaScript",
"main": "index.js",
"sideEffects": false,
"exports": {
".": {
"node": "./index.js",
"default": "./_esm5/index.js"
},
"./ajax": {
"node": "./ajax/index.js",
"default": "./_esm5/ajax/index.js"
},
"./fetch": {
"node": "./fetch/index.js",
"default": "./_esm5/fetch/index.js"
},
"./operators": {
"node": "./operators/index.js",
"default": "./_esm5/operators/index.js"
},
"./testing": {
"node": "./testing/index.js",
"default": "./_esm5/testing/index.js"
},
"./webSocket": {
"node": "./webSocket/index.js",
"default": "./_esm5/webSocket/index.js"
},
"./internal/*": {
"node": "./internal/*.js",
"default": "./_esm5/internal/*.js"
},
"./package.json": "./package.json"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
Expand Down

0 comments on commit 9f1142f

Please sign in to comment.