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
@@ -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")
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user