From 74c780208c4b78f7f076657fe7e871f36faf71cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Thu, 26 Dec 2024 19:25:42 +0100 Subject: [PATCH] make the built types work --- package.json | 7 ++++--- src/index.tsx | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bf817a7..7fb34b6 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "prop-types": "^15.8.1" }, "devDependencies": { + "@microsoft/api-extractor": "^7.48.1", "@types/node": "^18.11.14", "@types/react-dom": "^19.0.2", "@typescript-eslint/eslint-plugin": "^5.46.1", @@ -30,8 +31,8 @@ "prop-types-table": "^1.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", - "tsup": "^6.5.0", - "typescript": "^5.0.2", + "tsup": "^8.3.5", + "typescript": "5.4.2", "vitest": "^0.29.8" }, "homepage": "https://github.com/u-wave/react-youtube#readme", @@ -61,7 +62,7 @@ "url": "git+https://github.com/u-wave/react-youtube.git" }, "scripts": { - "build": "tsup src/index.tsx --format esm,cjs --dts", + "build": "tsup src/index.tsx --format esm,cjs --experimental-dts", "docs": "prop-types-table src/index.js | md-insert README.md --header Props -i", "example": "npm run --prefix example start", "prepare": "npm run build", diff --git a/src/index.tsx b/src/index.tsx index e3b20cc..0cb2f10 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,3 @@ -/* global YT, window */ import React from 'react'; import PropTypes from 'prop-types'; import loadSdk from './loadSdk';