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:
committed by
GitHub
parent
cdbb4b925b
commit
afb40d437b
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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")
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,12 +16,7 @@
|
||||
"package.json"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.3.2",
|
||||
"tsup": "^8.4.0",
|
||||
"typescript": "^5.6.2"
|
||||
"build": "yarn run -T tsup"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/admin-shared": "2.11.2",
|
||||
|
||||
@@ -16,12 +16,7 @@
|
||||
"package.json"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.3.2",
|
||||
"tsup": "^8.4.0",
|
||||
"typescript": "^5.6.2"
|
||||
"build": "yarn run -T tsup"
|
||||
},
|
||||
"packageManager": "yarn@3.2.1"
|
||||
}
|
||||
|
||||
@@ -21,17 +21,13 @@
|
||||
"package.json"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"watch": "tsup --watch",
|
||||
"test": "vitest --run",
|
||||
"test:watch": "vitest"
|
||||
"build": "yarn run -T tsup",
|
||||
"watch": "yarn run -T tsup --watch",
|
||||
"test": "../../../node_modules/.bin/vitest --run",
|
||||
"test:watch": "../../../node_modules/.bin/vitest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.12.11",
|
||||
"tsup": "^8.4.0",
|
||||
"typescript": "^5.6.2",
|
||||
"vite": "^5.4.14",
|
||||
"vitest": "^3.0.5"
|
||||
"vite": "^5.4.14"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vite": "^5.4.14"
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
"scripts": {
|
||||
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
||||
"dev": "vite",
|
||||
"build": "tsup && node ./scripts/generate-types.js",
|
||||
"build": "yarn run -T tsup && node ./scripts/generate-types.js",
|
||||
"build:preview": "vite build",
|
||||
"preview": "vite preview",
|
||||
"test": "vitest --run",
|
||||
"test": "../../../node_modules/.bin/vitest --run",
|
||||
"i18n:validate": "node ./scripts/i18n/validate-translation.js",
|
||||
"i18n:schema": "node ./scripts/i18n/generate-schema.js",
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
||||
@@ -84,23 +84,7 @@
|
||||
"@medusajs/admin-shared": "2.11.2",
|
||||
"@medusajs/admin-vite-plugin": "2.11.2",
|
||||
"@medusajs/types": "2.11.2",
|
||||
"@medusajs/ui-preset": "2.11.2",
|
||||
"@types/lodash.debounce": "^4.0.9",
|
||||
"@types/lodash.isequal": "^4.5.8",
|
||||
"@types/node": "^20.12.11",
|
||||
"@types/react": "^18.3.2",
|
||||
"@types/react-dom": "^18.2.25",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"ajv": "^8.17.1",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"postcss": "^8.4.38",
|
||||
"prettier": "^2.8.8",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"tsup": "^8.4.0",
|
||||
"typescript": "^5.6.2",
|
||||
"vite": "^5.4.14",
|
||||
"vite-plugin-inspect": "^0.8.7",
|
||||
"vitest": "^3.0.5"
|
||||
"@medusajs/ui-preset": "2.11.2"
|
||||
},
|
||||
"packageManager": "yarn@3.2.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user