mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
11 lines
266 B
JavaScript
11 lines
266 B
JavaScript
import process from "node:process";
|
|
import { startServer } from "./server.js";
|
|
|
|
const server = await startServer({ port: 3000 });
|
|
|
|
console.log(`Server started, navigate to ${server.url} start debug.`);
|
|
|
|
process.once("exit", async () => {
|
|
await server.close();
|
|
});
|