Skip to content

Commit

Permalink
Use .mjs extension to improve es6 module interop
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Dec 13, 2023
1 parent 1930e85 commit d9fce08
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/noaa",
"version": "0.8.10",
"version": "0.8.11",
"description": "sunrise and sunset via NOAA algorithm with elevation, based on KosherJava",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"contributors": [
Expand All @@ -14,17 +14,17 @@
"url": "git+https://github.com/hebcal/noaa.git"
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"module": "dist/index.mjs",
"typings": "dist/index.d.ts",
"type": "module",
"exports": {
"import": "./dist/index.js",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"scripts": {
"test": "echo \"Nothing to test -- no test specified\" && exit 0",
"build": "npm run build:cjs && mv dist/index.js dist/index.cjs && npm run build:es6",
"build": "npm run build:cjs && mv dist/index.js dist/index.cjs && npm run build:es6 && mv dist/index.js dist/index.mjs",
"build:cjs": "tsc -p ./tsconfig-cjs.json",
"build:es6": "tsc",
"clean": "gts clean",
Expand All @@ -43,9 +43,9 @@
"dist/*"
],
"devDependencies": {
"@types/node": "20.10.0",
"@types/node": "20.10.4",
"gts": "^5.2.0",
"typescript": "^5.3.2"
"typescript": "^5.3.3"
},
"peerDependencies": {
"temporal-polyfill": "^0.1.1"
Expand Down

0 comments on commit d9fce08

Please sign in to comment.