Skip to content

Commit d2a701e

Browse files
committed
feat(pkg): Adds conditional exports and main for legacy support
1 parent 40eeff2 commit d2a701e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"description": "Promise Orchestrator: Process promise-based tasks in series and parallel, controlling concurrency and throttling",
44
"version": "2.0.1",
55
"type": "module",
6-
"exports": "./index.js",
7-
"browser": "./dist/porch-browser.min.js",
6+
"exports": {
7+
".": {
8+
"import": "./dist/porch.mjs",
9+
"require": "./dist/porch.cjs"
10+
}
11+
},
12+
"main": "./dist/porch.cjs",
13+
"browser": "./dist/porch.umd.cjs",
814
"license": "MIT",
915
"repository": {
1016
"type": "git",

0 commit comments

Comments
 (0)