Skip to content

Commit 7e83751

Browse files
committed
feat: expose TypeScript declarations
1 parent 6c735b9 commit 7e83751

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"spotify-web-playback"
88
],
99
"repository": "github:Symbitic/spotify-web-playback",
10-
"main": "dist/index.js",
1110
"module": "dist/index.mjs",
1211
"types": "dist/index.d.ts",
1312
"files": [

rollup.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ const extensions = [ '.js', '.ts' ];
77
export default {
88
input: 'src/index.ts',
99
output: [
10-
{
11-
file: pkg.main,
12-
format: 'umd',
13-
name: 'SpotifyPlayer',
14-
exports: 'default'
15-
},
1610
{
1711
file: pkg.module,
1812
format: 'esm'

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { SpotifyPlayer } from './spotify';
2+
export * from './spotify-types';
23

34
export default SpotifyPlayer;

0 commit comments

Comments
 (0)