chore(): Cleanup and organize deps (#13940)

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* Create lucky-poets-scream.md

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* dedupe snapshot this build

* split into 4 shard

* re configure packages integration tests

* re configure packages integration tests

* re configure packages integration tests

* re configure packages integration tests

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* reduce shard for packages
This commit is contained in:
Adrien de Peretti
2025-11-03 19:06:37 +01:00
committed by GitHub
parent cdbb4b925b
commit afb40d437b
83 changed files with 6898 additions and 11792 deletions

View File

@@ -4,7 +4,7 @@
"description": "Bundler for the Medusa admin dashboard.",
"author": "Kasper Kristensen <kasper@medusajs.com>",
"scripts": {
"build": "tsup"
"build": "yarn run -T tsup"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -18,11 +18,7 @@
"package.json"
],
"devDependencies": {
"@medusajs/types": "2.11.2",
"@types/compression": "^1.7.5",
"@types/express": "^4.17.21",
"tsup": "^8.4.0",
"typescript": "^5.6.2"
"@medusajs/types": "2.11.2"
},
"dependencies": {
"@medusajs/admin-shared": "2.11.2",

View File

@@ -1,4 +1,4 @@
import express, { RequestHandler } from "express"
import express, { IRouter, RequestHandler } from "express"
import fs from "fs"
import path from "path"
import type { InlineConfig, ViteDevServer } from "vite"
@@ -67,7 +67,7 @@ async function injectHtmlMiddleware(
})
}
export async function develop(options: BundlerOptions) {
export async function develop(options: BundlerOptions): Promise<IRouter> {
const vite = await import("vite")
try {

View File

@@ -1,5 +1,5 @@
import compression from "compression"
import { Request, Response, Router, static as static_ } from "express"
import { IRouter, Request, Response, Router, static as static_ } from "express"
import fs from "fs"
import { ServerResponse } from "http"
import path from "path"
@@ -10,7 +10,7 @@ type ServeOptions = {
const router = Router()
export async function serve(options: ServeOptions) {
export async function serve(options: ServeOptions): Promise<IRouter> {
const htmlPath = path.resolve(options.outDir, "index.html")
/**