Skip to content

Commit a25c9ea

Browse files
committed
fix: export and entry points and bump package version
1 parent b69a9db commit a25c9ea

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
22
"name": "@bolajiolajide/now-playing",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"description": "",
5-
"main": "dist/now-playing.js",
5+
"main": "dist/now-playing.cjs.js",
6+
"module": "dist/now-playing.esm.js",
67
"types": "dist/now-playing.d.ts",
7-
"type": "module",
88
"scripts": {
99
"ex:spotify": "ts-node examples/spotify.ts",
10-
"ex:noop": "ts-node examples/noop.ts",
1110
"build": "npx rimraf dist && rollup --config"
1211
},
12+
"exports": {
13+
"require": "./dist/now-playing.cjs.js",
14+
"types": "./dist/now-playing.d.ts",
15+
"default": "./dist/now-playing.esm.js"
16+
},
1317
"files": [
14-
"dist/now-playing.d.ts",
15-
"dist/now-playing.js",
16-
"dist/now-playing.js.map"
18+
"dist"
1719
],
1820
"keywords": [],
1921
"author": "",

0 commit comments

Comments
 (0)