Skip to content

Commit 74c7802

Browse files
committed
make the built types work
1 parent 0c2bd91 commit 74c7802

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"prop-types": "^15.8.1"
1414
},
1515
"devDependencies": {
16+
"@microsoft/api-extractor": "^7.48.1",
1617
"@types/node": "^18.11.14",
1718
"@types/react-dom": "^19.0.2",
1819
"@typescript-eslint/eslint-plugin": "^5.46.1",
@@ -30,8 +31,8 @@
3031
"prop-types-table": "^1.0.0",
3132
"react": "^18.0.0",
3233
"react-dom": "^18.0.0",
33-
"tsup": "^6.5.0",
34-
"typescript": "^5.0.2",
34+
"tsup": "^8.3.5",
35+
"typescript": "5.4.2",
3536
"vitest": "^0.29.8"
3637
},
3738
"homepage": "https://github.com/u-wave/react-youtube#readme",
@@ -61,7 +62,7 @@
6162
"url": "git+https://github.com/u-wave/react-youtube.git"
6263
},
6364
"scripts": {
64-
"build": "tsup src/index.tsx --format esm,cjs --dts",
65+
"build": "tsup src/index.tsx --format esm,cjs --experimental-dts",
6566
"docs": "prop-types-table src/index.js | md-insert README.md --header Props -i",
6667
"example": "npm run --prefix example start",
6768
"prepare": "npm run build",

src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global YT, window */
21
import React from 'react';
32
import PropTypes from 'prop-types';
43
import loadSdk from './loadSdk';

0 commit comments

Comments
 (0)