Skip to content

Commit b00175f

Browse files
fix(core): don't rely on strict esbuild version (#3073)
1 parent 67fd8cc commit b00175f

File tree

5 files changed

+44
-88
lines changed

5 files changed

+44
-88
lines changed

deno.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"@std/collections": "jsr:@std/collections@^1.0.11",
4848
"@std/http": "jsr:@std/http@^1.0.15",
4949
"@std/uuid": "jsr:@std/uuid@^1.0.7",
50+
"esbuild": "npm:esbuild@^0.25.5",
51+
"esbuild-wasm": "npm:esbuild-wasm@^0.25.5",
5052
"fresh": "jsr:@fresh/core@^2.0.0-alpha.29",
5153
"preact": "npm:preact@^10.26.9",
5254
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
5355
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
5456
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
5557
"@preact/signals": "npm:@preact/signals@^2.2.1",
56-
"esbuild": "npm:esbuild@0.25.4",
57-
"esbuild-wasm": "npm:esbuild-wasm@0.25.4",
5858
"@std/crypto": "jsr:@std/crypto@1",
5959
"@std/datetime": "jsr:@std/datetime@^0.225.2",
6060
"@std/encoding": "jsr:@std/encoding@1",
@@ -104,5 +104,8 @@
104104
"exclude": ["no-window"],
105105
"include": ["no-console"]
106106
}
107+
},
108+
"fmt": {
109+
"exclude": ["./www/static/**/*.svg"]
107110
}
108111
}

deno.lock

Lines changed: 8 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

init/src/init.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,8 @@ button, [role="button"] {
203203
}
204204
code {
205205
font-family:
206-
ui-monospace,
207-
SFMono-Regular,
208-
Menlo,
209-
Monaco,
210-
Consolas,
211-
"Liberation Mono",
212-
"Courier New",
213-
monospace;
206+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
207+
"Courier New", monospace;
214208
font-size: 1em;
215209
}
216210
img,
@@ -227,19 +221,9 @@ html {
227221
line-height: 1.5;
228222
-webkit-text-size-adjust: 100%;
229223
font-family:
230-
ui-sans-serif,
231-
system-ui,
232-
-apple-system,
233-
BlinkMacSystemFont,
234-
"Segoe UI",
235-
Roboto,
236-
"Helvetica Neue",
237-
Arial,
238-
"Noto Sans",
239-
sans-serif,
240-
"Apple Color Emoji",
241-
"Segoe UI Emoji",
242-
"Segoe UI Symbol",
224+
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
225+
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
226+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
243227
"Noto Color Emoji";
244228
}
245229
.transition-colors {
@@ -345,13 +329,26 @@ ${GRADIENT_CSS}`;
345329

346330
const cssStyles = useTailwind ? TAILWIND_CSS : NO_TAILWIND_STYLES;
347331
await writeFile("static/styles.css", cssStyles);
348-
332+
// deno-fmt-ignore
349333
const STATIC_LOGO =
350334
`<svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
351-
<path d="M34.092 8.845C38.929 20.652 34.092 27 30 30.5c1 3.5-2.986 4.222-4.5 2.5-4.457 1.537-13.512 1.487-20-5C2 24.5 4.73 16.714 14 11.5c8-4.5 16-7 20.092-2.655Z" fill="#FFDB1E"/>
352-
<path d="M14 11.5c6.848-4.497 15.025-6.38 18.368-3.47C37.5 12.5 21.5 22.612 15.5 25c-6.5 2.587-3 8.5-6.5 8.5-3 0-2.5-4-5.183-7.75C2.232 23.535 6.16 16.648 14 11.5Z" fill="#fff" stroke="#FFDB1E"/>
353-
<path d="M28.535 8.772c4.645 1.25-.365 5.695-4.303 8.536-3.732 2.692-6.606 4.21-7.923 4.83-.366.173-1.617-2.252-1.617-1 0 .417-.7 2.238-.934 2.326-1.365.512-4.223 1.29-5.835 1.29-3.491 0-1.923-4.754 3.014-9.122.892-.789 1.478-.645 2.283-.645-.537-.773-.534-.917.403-1.546C17.79 10.64 23 8.77 25.212 8.42c.366.014.82.35.82.629.41-.14 2.095-.388 2.503-.278Z" fill="#FFE600"/>
354-
<path d="M14.297 16.49c.985-.747 1.644-1.01 2.099-2.526.566.121.841-.08 1.29-.701.324.466 1.657.608 2.453.701-.715.451-1.057.852-1.452 2.106-1.464-.611-3.167-.302-4.39.42Z" fill="#fff"/>
335+
<path
336+
d="M34.092 8.845C38.929 20.652 34.092 27 30 30.5c1 3.5-2.986 4.222-4.5 2.5-4.457 1.537-13.512 1.487-20-5C2 24.5 4.73 16.714 14 11.5c8-4.5 16-7 20.092-2.655Z"
337+
fill="#FFDB1E"
338+
/>
339+
<path
340+
d="M14 11.5c6.848-4.497 15.025-6.38 18.368-3.47C37.5 12.5 21.5 22.612 15.5 25c-6.5 2.587-3 8.5-6.5 8.5-3 0-2.5-4-5.183-7.75C2.232 23.535 6.16 16.648 14 11.5Z"
341+
fill="#fff"
342+
stroke="#FFDB1E"
343+
/>
344+
<path
345+
d="M28.535 8.772c4.645 1.25-.365 5.695-4.303 8.536-3.732 2.692-6.606 4.21-7.923 4.83-.366.173-1.617-2.252-1.617-1 0 .417-.7 2.238-.934 2.326-1.365.512-4.223 1.29-5.835 1.29-3.491 0-1.923-4.754 3.014-9.122.892-.789 1.478-.645 2.283-.645-.537-.773-.534-.917.403-1.546C17.79 10.64 23 8.77 25.212 8.42c.366.014.82.35.82.629.41-.14 2.095-.388 2.503-.278Z"
346+
fill="#FFE600"
347+
/>
348+
<path
349+
d="M14.297 16.49c.985-.747 1.644-1.01 2.099-2.526.566.121.841-.08 1.29-.701.324.466 1.657.608 2.453.701-.715.451-1.057.852-1.452 2.106-1.464-.611-3.167-.302-4.39.42Z"
350+
fill="#fff"
351+
/>
355352
</svg>`;
356353
await writeFile("static/logo.svg", STATIC_LOGO);
357354

@@ -674,7 +671,10 @@ This will watch the project directory and restart as necessary.`;
674671

675672
// Specifically print unresolvedDirectory, rather than resolvedDirectory in order to
676673
// not leak personal info (e.g. `/Users/MyName`)
677-
console.log("\n%cProject initialized!\n", "color: green; font-weight: bold");
674+
console.log(
675+
"\n%cProject initialized!\n",
676+
"color: green; font-weight: bold",
677+
);
678678

679679
if (unresolvedDirectory !== ".") {
680680
console.log(

www/static/markdown.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -789,14 +789,8 @@ ol.nested li:before {
789789
}
790790
.fenced-code-title {
791791
font-family:
792-
ui-monospace,
793-
SFMono-Regular,
794-
Menlo,
795-
Monaco,
796-
Consolas,
797-
"Liberation Mono",
798-
"Courier New",
799-
monospace;
792+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
793+
"Courier New", monospace;
800794
font-size: 0.8125rem;
801795
line-height: 1;
802796
}

www/static/styles.css

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,8 @@ html[data-theme="dark"]:root {
5858

5959
body {
6060
font-family:
61-
Fixel,
62-
system-ui,
63-
-apple-system,
64-
BlinkMacSystemFont,
65-
"Segoe UI",
66-
Roboto,
67-
Oxygen,
68-
Ubuntu,
69-
Cantarell,
70-
"Open Sans",
71-
"Helvetica Neue",
72-
sans-serif;
61+
Fixel, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
62+
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
7363
font-weight: 450;
7464
font-size: 1.125rem;
7565
line-height: 1.5;

0 commit comments

Comments
 (0)