From a25c9eacbf7e93ce5cd986114593685fc1b947f2 Mon Sep 17 00:00:00 2001 From: Favour Date: Fri, 14 Jun 2024 15:50:09 +0100 Subject: [PATCH] fix: export and entry points and bump package version --- package.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b9d0424..40f859b 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,21 @@ { "name": "@bolajiolajide/now-playing", - "version": "0.0.10", + "version": "0.0.11", "description": "", - "main": "dist/now-playing.js", + "main": "dist/now-playing.cjs.js", + "module": "dist/now-playing.esm.js", "types": "dist/now-playing.d.ts", - "type": "module", "scripts": { "ex:spotify": "ts-node examples/spotify.ts", - "ex:noop": "ts-node examples/noop.ts", "build": "npx rimraf dist && rollup --config" }, + "exports": { + "require": "./dist/now-playing.cjs.js", + "types": "./dist/now-playing.d.ts", + "default": "./dist/now-playing.esm.js" + }, "files": [ - "dist/now-playing.d.ts", - "dist/now-playing.js", - "dist/now-playing.js.map" + "dist" ], "keywords": [], "author": "",