Skip to content

Commit

Permalink
feat: add ES6 Module Support, package.json module point to "esm/index…
Browse files Browse the repository at this point in the history
….js"

fix #598, fix #313
  • Loading branch information
iamkun committed Jan 3, 2021
1 parent f2e4790 commit 98401d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "2KB immutable date time library alternative to Moment.js with the same modern API ",
"main": "dayjs.min.js",
"types": "index.d.ts",
"module": "dayjs.min.js",
"module": "esm/index.js",
"scripts": {
"test": "TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && TZ=America/Whitehorse npm run test-tz && npm run test-tz && jest",
"test-tz": "date && jest test/timezone.test --coverage=false",
Expand Down

0 comments on commit 98401d6

Please sign in to comment.