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": "",