Skip to content

Commit

Permalink
limit lws imports
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 28, 2025
1 parent 7c68f6a commit 711ec69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"selenium-webdriver": "^4.27.0",
"sinon": "^17.0.1",
"typescript": "^5.0.4",
"local-web-server": "^5.4.0"
"lws": "^4.2.0",
"lws-cors": "^4.2.1",
"lws-index": "^3.1.1",
"lws-log": "^3.0.0",
"lws-static": "^3.1.1"
}
}
7 changes: 6 additions & 1 deletion tests/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import * as path from "path";
import commandLineArgs from "command-line-args";
import esMain from "es-main";
import LocalWebServer from "local-web-server";
import LocalWebServer from "lws";
import "lws-cors";
import "lws-index";
import "lws-log";
import "lws-static";

const ROOT_DIR = path.join(process.cwd(), "./");

Expand All @@ -16,6 +20,7 @@ export default async function serve(port) {
corsOpenerPolicy: "same-origin",
corsEmbedderPolicy: "require-corp",
logFormat: "dev",
stack: ["lws-log", "lws-cors", "lws-static", "lws-index"],
});
await verifyStartup(ws, port);

Expand Down

0 comments on commit 711ec69

Please sign in to comment.