Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix: ship spark-md5 types with dashboard-core (#14714)

Damian Legawiec741345da3694
diff --git a/.changeset/dashboard-core-spark-md5-types.md b/.changeset/dashboard-core-spark-md5-types.md
new file mode 100644
index 0000000000..e1d930c147
--- /dev/null
+++ b/.changeset/dashboard-core-spark-md5-types.md
@@ -0,0 +1,5 @@
+---
+"@spree/dashboard-core": patch
+---
+
+`@types/spark-md5` is now a regular dependency. The package ships TypeScript source, so its consumers type-check `use-direct-upload`, and `tsc` failed with "Could not find a declaration file for module 'spark-md5'" unless each app installed the types itself.
diff --git a/packages/dashboard-core/package.json b/packages/dashboard-core/package.json
index 99786d2f4e..3ea90ebf1b 100644
--- a/packages/dashboard-core/package.json
+++ b/packages/dashboard-core/package.json
@@ -76,6 +76,7 @@
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@tailwindcss/vite": "^4.2.4",
+ "@types/spark-md5": "^3.0.5",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"lucide-react": "^1.47.0",
@@ -87,7 +88,6 @@
"@spree/dashboard-ui": "workspace:^",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
- "@types/spark-md5": "^3.0.5",
"tsup": "^8.5.1",
"typescript": "~6.0.3",
"vite": "^8.0.16",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c4776fe074..5a784c5019 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -358,6 +358,9 @@ importers:
'@tanstack/react-table':
specifier: ^8.21.3
+ '@types/spark-md5':
+ specifier: ^3.0.5
+ version: 3.0.5
date-fns:
specifier: ^4.1.0
version: 4.1.0
@@ -401,9 +404,6 @@ importers:
'@types/react-dom':
specifier: ^19.2.3
version: 19.2.3(@types/[email protected])
- '@types/spark-md5':
- specifier: ^3.0.5
- version: 3.0.5
tsup:
specifier: ^8.5.1