Skip to content

Commit

Permalink
fix: specify types for legacy support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: If your environment does not support conditional exports, you have to import the schedulers from cron-schedule/dist/schedulers instead of cron-schedule/schedulers.

Signed-off-by: Pascal Sthamer <[email protected]>
  • Loading branch information
P4sca1 committed Mar 30, 2023
1 parent 31a27df commit 7288c13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@
"default": "./dist/index.js"
},
"./schedulers/interval-based.js": {
"type": "./dist/schedulerrs/interval-based.d.ts",
"types": "./dist/schedulers/interval-based.d.ts",
"default": "./dist/schedulers/interval-based.js"
},
"./schedulers/timer-based.js": {
"type": "./dist/schedulers/timer-based.d.ts",
"types": "./dist/schedulers/timer-based.d.ts",
"default": "./dist/schedulers/timer-based.js"
}
},
"types": "./dist/index.d.ts",
"sideEffects": false,
"release": {
"branches": [
Expand Down

0 comments on commit 7288c13

Please sign in to comment.