chore: update @elysiajs/static

This commit is contained in:
C4illin 2024-10-18 19:32:42 +02:00
parent e8ed10dde8
commit d2cd6706c9
16 changed files with 11 additions and 7 deletions

2
.gitignore vendored
View file

@ -48,4 +48,4 @@ package-lock.json
/data /data
/Bruno /Bruno
/tsconfig.tsbuildinfo /tsconfig.tsbuildinfo
/src/public/generated.css /public/generated.css

View file

@ -57,7 +57,7 @@ RUN apk --no-cache add \
COPY --from=install /temp/prod/node_modules node_modules COPY --from=install /temp/prod/node_modules node_modules
COPY --from=builder /root/.cargo/bin/resvg /usr/local/bin/resvg COPY --from=builder /root/.cargo/bin/resvg /usr/local/bin/resvg
COPY --from=prerelease /app/src/public/generated.css /app/src/public/ COPY --from=prerelease /app/public/generated.css /app/public/
# COPY --from=prerelease /app/src/index.tsx /app/src/ # COPY --from=prerelease /app/src/index.tsx /app/src/
# COPY --from=prerelease /app/package.json . # COPY --from=prerelease /app/package.json .
COPY . . COPY . .

BIN
bun.lockb

Binary file not shown.

View file

@ -5,7 +5,7 @@
"dev": "bun run --watch src/index.tsx", "dev": "bun run --watch src/index.tsx",
"hot": "bun run --hot src/index.tsx", "hot": "bun run --hot src/index.tsx",
"format": "eslint --fix .", "format": "eslint --fix .",
"build": "postcss ./src/main.css -o ./src/public/generated.css", "build": "postcss ./src/main.css -o ./public/generated.css",
"lint": "run-p 'lint:*'", "lint": "run-p 'lint:*'",
"lint:tsc": "tsc --noEmit", "lint:tsc": "tsc --noEmit",
"lint:knip": "knip", "lint:knip": "knip",
@ -15,7 +15,7 @@
"@elysiajs/cookie": "^0.8.0", "@elysiajs/cookie": "^0.8.0",
"@elysiajs/html": "^1.1.1", "@elysiajs/html": "^1.1.1",
"@elysiajs/jwt": "^1.1.1", "@elysiajs/jwt": "^1.1.1",
"@elysiajs/static": "1.0.3", "@elysiajs/static": "^1.1.1",
"elysia": "^1.1.22" "elysia": "^1.1.22"
}, },
"module": "src/index.tsx", "module": "src/index.tsx",

View file

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 476 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 960 B

After

Width:  |  Height:  |  Size: 960 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

View file

@ -3,5 +3,9 @@
"extends": [ "extends": [
"config:recommended", "config:recommended",
":disableDependencyDashboard" ":disableDependencyDashboard"
] ],
"lockFileMaintenance": {
"enabled": true,
"automerge": true
}
} }

View file

@ -127,8 +127,8 @@ const app = new Elysia({
) )
.use( .use(
staticPlugin({ staticPlugin({
assets: "src/public/", assets: "public",
prefix: "/", prefix: "",
}), }),
) )
.get("/test", () => { .get("/test", () => {