refactor: make this repo a Deno workspace (#2719)
This commit is contained in:
@@ -1,21 +1,9 @@
|
||||
{
|
||||
"workspace": [],
|
||||
"lock": false,
|
||||
"patch": ["../../.."],
|
||||
"compilerOptions": {
|
||||
"jsx": "precompile",
|
||||
"jsxImportSource": "preact"
|
||||
},
|
||||
"imports": {
|
||||
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.10.3",
|
||||
"@std/crypto": "jsr:@std/crypto@^0.224.0",
|
||||
"@std/datetime": "jsr:@std/datetime@^0.224.0",
|
||||
"@std/encoding": "jsr:@std/encoding@^0.224.0",
|
||||
"@std/fmt": "jsr:@std/fmt@^0.224.0",
|
||||
"@std/fs": "jsr:@std/fs@^0.224.0",
|
||||
"@std/html": "jsr:@std/html@^0.224.0",
|
||||
"@std/jsonc": "jsr:@std/jsonc@^0.224.0",
|
||||
"@std/path": "jsr:@std/path@^0.224.0",
|
||||
"@std/semver": "jsr:@std/semver@^0.224.0",
|
||||
"preact": "npm:preact@^10.24.1",
|
||||
"preact-render-to-string": "npm:preact-render-to-string@^6.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
{
|
||||
"workspace": [],
|
||||
"lock": false,
|
||||
"patch": ["../../.."],
|
||||
"compilerOptions": {
|
||||
"jsx": "precompile",
|
||||
"jsxImportSource": "preact",
|
||||
"jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"]
|
||||
},
|
||||
"imports": {
|
||||
"@std/encoding": "jsr:@std/encoding@^0.224.0",
|
||||
"@std/fmt": "jsr:@std/fmt@^0.224.0",
|
||||
"@std/html": "jsr:@std/html@^0.224.0",
|
||||
"@std/path": "jsr:@std/path@^0.224.0",
|
||||
"preact": "npm:preact@^10.24.1",
|
||||
"preact-render-to-string": "npm:preact-render-to-string@^6.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
+12
-2
@@ -92,7 +92,12 @@ export async function withBrowserApp(
|
||||
}, await app.handler());
|
||||
|
||||
const browser = await launch({
|
||||
args: ["--window-size=1280,720"],
|
||||
args: [
|
||||
"--window-size=1280,720",
|
||||
...((Deno.env.get("CI") && Deno.build.os === "linux")
|
||||
? ["--no-sandbox"]
|
||||
: []),
|
||||
],
|
||||
headless: !Deno.args.includes("--headful"),
|
||||
});
|
||||
|
||||
@@ -113,7 +118,12 @@ export async function withBrowser(fn: (page: Page) => void | Promise<void>) {
|
||||
const aborter = new AbortController();
|
||||
try {
|
||||
const browser = await launch({
|
||||
args: ["--window-size=1280,720"],
|
||||
args: [
|
||||
"--window-size=1280,7201",
|
||||
...((Deno.env.get("CI") && Deno.build.os === "linux")
|
||||
? ["--no-sandbox"]
|
||||
: []),
|
||||
],
|
||||
headless: !Deno.args.includes("--headful"),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user