From d59b486943702aa071af22a6a7e0186e439f43d1 Mon Sep 17 00:00:00 2001 From: Hiren Chauhan Date: Mon, 30 Oct 2023 01:59:54 +0530 Subject: [PATCH] chore: update config for esm and cjs --- js/dist/{gu2en.cjs.js => gu2en.cjs} | 0 js/package.json | 4 ++-- js/rollup.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename js/dist/{gu2en.cjs.js => gu2en.cjs} (100%) diff --git a/js/dist/gu2en.cjs.js b/js/dist/gu2en.cjs similarity index 100% rename from js/dist/gu2en.cjs.js rename to js/dist/gu2en.cjs diff --git a/js/package.json b/js/package.json index e806899..a285177 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "gu2en", - "version": "1.0.0", + "version": "1.0.2", "description": "Transliterate gujarati unicode text to english/roman letters", "keywords": [ "transliteration", @@ -16,7 +16,7 @@ "license": "GPL-3.0-or-later", "author": "Hiren Chauhan", "type": "module", - "main": "dist/gu2en.cjs.js", + "main": "dist/gu2en.cjs", "module": "dist/gu2en.esm.js", "browser": "dist/gu2en.umd.min.js", "files": [ diff --git a/js/rollup.config.js b/js/rollup.config.js index 9126eea..4d4e46e 100644 --- a/js/rollup.config.js +++ b/js/rollup.config.js @@ -11,7 +11,7 @@ const config = [ plugins: [eslint(), commonjs()], output: [ { - file: 'dist/gu2en.cjs.js', + file: 'dist/gu2en.cjs', format: 'cjs', }, {