From 4b42977611650d24916e19bd3bb610febbb5e1ae Mon Sep 17 00:00:00 2001 From: Zhang Visper Date: Mon, 28 Aug 2023 11:52:12 +0800 Subject: [PATCH] fix: cjs import error --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a6e1a6b..b4df25f 100644 --- a/package.json +++ b/package.json @@ -28,14 +28,14 @@ "exports": { ".": { "import": "./esm/sqids.js", - "require": "./cjs/index.js" + "require": "./cjs/sqids.js" }, "./*": { "import": "./esm/*.js", "require": "./cjs/*.js" }, "./cjs": { - "require": "./cjs/index.js" + "require": "./cjs/sqids.js" }, "./cjs/*": { "require": "./cjs/*.js" @@ -45,7 +45,7 @@ }, "./package.json": "./package.json" }, - "main": "cjs/index.js", + "main": "cjs/sqids.js", "unpkg": "dist/sqids.js", "module": "esm/sqids.js", "source": "src/sqids.ts",