From 5f5c3a31bc68bacf0824cb9217edad7a1c4d81c7 Mon Sep 17 00:00:00 2001 From: Michael Radwin Date: Wed, 6 Nov 2024 01:27:38 +0000 Subject: [PATCH] Use dist/esm instead of dist/es for consistency with @hebcal/hdate --- package.json | 14 +++++++------- rollup.config.cjs | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 2e6878a..20fe67e 100644 --- a/package.json +++ b/package.json @@ -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)", @@ -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" }, @@ -103,4 +103,4 @@ "temporal-polyfill": "^0.2.5", "tslib": "^2.8.1" } -} \ No newline at end of file +} diff --git a/rollup.config.cjs b/rollup.config.cjs index 4c81b57..55d96d8 100644 --- a/rollup.config.cjs +++ b/rollup.config.cjs @@ -65,7 +65,7 @@ module.exports = defineConfig([ input: 'src/index.ts', output: [ { - dir: 'dist/es', + dir: 'dist/esm', format: 'es', name: pkg.name, banner, @@ -79,7 +79,7 @@ module.exports = defineConfig([ ], plugins: [ typescript({ - outDir: 'dist/es', + outDir: 'dist/esm', rootDir: './src', }), json({compact: true, preferConst: true}),