Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix for NPM publish failing on MDX dependency (#2223)

Martin Peeters09026278afbd
diff --git a/ui/app/storybook/package.json b/ui/app/storybook/package.json
index 47e2cfd91..cb15530d3 100644
--- a/ui/app/storybook/package.json
+++ b/ui/app/storybook/package.json
@@ -20,6 +20,7 @@
"@storybook/addon-a11y": "~9.1.10",
"@storybook/addon-docs": "~9.1.10",
"@storybook/web-components": "~9.1.10",
+ "@types/react": "^18.3.12",
"@wc-toolkit/storybook-helpers": "^9.0.1",
"storybook": "~9.1.10",
"storybook-web-components-rsbuild": "~2.1.2",
diff --git a/ui/knip.jsonc b/ui/knip.jsonc
index bd3b0f5fd..e700dcac8 100644
--- a/ui/knip.jsonc
+++ b/ui/knip.jsonc
@@ -9,6 +9,7 @@
],
"ignoreDependencies": [
+ "@types/react", // Required by mdx which is used in Storybook
"@types/mapbox", // Global types under the L namespace (no direct import)
"@webcomponents/webcomponentsjs", // Imported through index.html files for apps
"@types/offscreencanvas" // Referenced in the tsconfig file
diff --git a/yarn.lock b/yarn.lock
index 22ad9c4a2..4338bbd3d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2337,6 +2337,7 @@ __metadata:
"@storybook/addon-a11y": "npm:~9.1.10"
"@storybook/addon-docs": "npm:~9.1.10"
"@storybook/web-components": "npm:~9.1.10"
+ "@types/react": "npm:^18.3.12"
"@wc-toolkit/storybook-helpers": "npm:^9.0.1"
lit: "npm:^3.3.1"
storybook: "npm:~9.1.10"
@@ -3476,6 +3477,13 @@ __metadata:
languageName: node
linkType: hard
+"@types/prop-types@npm:*":
+ version: 15.7.15
+ resolution: "@types/prop-types@npm:15.7.15"
+ checksum: 10c0/b59aad1ad19bf1733cf524fd4e618196c6c7690f48ee70a327eb450a42aab8e8a063fbe59ca0a5701aebe2d92d582292c0fb845ea57474f6a15f6994b0e260b2
+ languageName: node
+ linkType: hard
+
"@types/qs@npm:*, @types/qs@npm:^6.9.7":
version: 6.9.11
resolution: "@types/qs@npm:6.9.11"
@@ -3490,6 +3498,16 @@ __metadata:
languageName: node
linkType: hard
+"@types/react@npm:^18.3.12":
+ version: 18.3.26
+ resolution: "@types/react@npm:18.3.26"
+ dependencies:
+ "@types/prop-types": "npm:*"
+ csstype: "npm:^3.0.2"
+ checksum: 10c0/7b62d91c33758f14637311921c92db6045b6328e2300666a35ef8130d06385e39acada005eaf317eee93228edc10ea5f0cd34a0385654d2014d24699a65bfeef
+ languageName: node
+ linkType: hard
+
"@types/retry@npm:0.12.2":
version: 0.12.2
resolution: "@types/retry@npm:0.12.2"
@@ -5056,6 +5074,13 @@ __metadata:
languageName: node
linkType: hard
+"csstype@npm:^3.0.2":
+ version: 3.1.3
+ resolution: "csstype@npm:3.1.3"
+ checksum: 10c0/80c089d6f7e0c5b2bd83cf0539ab41474198579584fa10d86d0cafe0642202343cbc119e076a0b1aece191989477081415d66c9fefbf3c957fc2fc4b7009f248
+ languageName: node
+ linkType: hard
+
"custom-elements-manifest@npm:1.0.0":
version: 1.0.0
resolution: "custom-elements-manifest@npm:1.0.0"