From 92b731e4cce1d7c5dd55946f0f64decf4104e14a Mon Sep 17 00:00:00 2001 From: Karl Stein Date: Mon, 19 Feb 2024 12:08:49 -1000 Subject: [PATCH] Fixed CJS file reference in package.json --- CHANGELOG.md | 4 ++++ package.json | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5559651..a51652a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v2.0.1 (2024-02-19) + +- Fixed CJS file reference in package.json + ## v2.0.0 (2024-02-19) - **[BREAKING]** Use `Map` instead of `Array` to manage event listeners diff --git a/package.json b/package.json index dfd0133..d5db5a7 100644 --- a/package.json +++ b/package.json @@ -22,17 +22,17 @@ }, "sideEffects": false, "esnext": "./esm/index.js", - "main": "./dist/index.js", + "main": "./cjs/index.js", "module": "./esm/index.js", "files": [ - "/dist", + "/cjs", "/esm" ], "scripts": { "build": "npm run build-cjs && npm run build-esm", "build-cjs": "tsc -p tsconfig.cjs.json", "build-esm": "tsc", - "clean": "rimraf ./dist ./esm", + "clean": "rimraf ./cjs ./esm", "dev-cjs": "tsc --watch -p tsconfig.cjs.json", "dev-esm": "tsc --watch", "dev": "concurrently 'npm:dev-*'",