Skip to content

Commit

Permalink
Use dist/esm instead of dist/es for consistency with @hebcal/hdate
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Nov 6, 2024
1 parent f8706a7 commit 5f5c3a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/core",
"version": "5.7.2",
"version": "5.7.3",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"contributors": [
"Eyal Schachter (https://github.com/Scimonster)",
Expand All @@ -24,17 +24,17 @@
],
"description": "A perpetual Jewish Calendar API",
"main": "./dist/index.cjs",
"module": "./dist/es/index.js",
"module": "./dist/esm/index.js",
"type": "module",
"exports": {
".": {
"import": "./dist/es/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/index.cjs",
"types": "./dist/es/index.d.ts"
"types": "./dist/esm/index.d.ts"
},
"./dist/es/*": "./dist/es/*.js"
"./dist/esm/*": "./dist/esm/*.js"
},
"typings": "./dist/es/index.d.ts",
"typings": "./dist/esm/index.d.ts",
"engines": {
"node": ">= 16.0.0"
},
Expand Down Expand Up @@ -103,4 +103,4 @@
"temporal-polyfill": "^0.2.5",
"tslib": "^2.8.1"
}
}
}
4 changes: 2 additions & 2 deletions rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = defineConfig([
input: 'src/index.ts',
output: [
{
dir: 'dist/es',
dir: 'dist/esm',
format: 'es',
name: pkg.name,
banner,
Expand All @@ -79,7 +79,7 @@ module.exports = defineConfig([
],
plugins: [
typescript({
outDir: 'dist/es',
outDir: 'dist/esm',
rootDir: './src',
}),
json({compact: true, preferConst: true}),
Expand Down

0 comments on commit 5f5c3a3

Please sign in to comment.