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
/Bruno
/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=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/package.json .
COPY . .

BIN
bun.lockb

Binary file not shown.

View File

@@ -5,7 +5,7 @@
"dev": "bun run --watch src/index.tsx",
"hot": "bun run --hot src/index.tsx",
"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:tsc": "tsc --noEmit",
"lint:knip": "knip",
@@ -15,7 +15,7 @@
"@elysiajs/cookie": "^0.8.0",
"@elysiajs/html": "^1.1.1",
"@elysiajs/jwt": "^1.1.1",
"@elysiajs/static": "1.0.3",
"@elysiajs/static": "^1.1.1",
"elysia": "^1.1.22"
},
"module": "src/index.tsx",

View File

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 476 B

View File

Before

Width:  |  Height:  |  Size: 960 B

After

Width:  |  Height:  |  Size: 960 B

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

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

View File

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