Move to pnpm

This commit is contained in:
sianida26 2024-03-13 22:40:33 +07:00
parent 6d8999dbf5
commit 2d099120fa
5 changed files with 3962 additions and 9 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -3,11 +3,11 @@
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"check-env": "bun run ./env.ts", "check-env": "ts-node env.ts && run ./env.ts",
"dev": "bun run check-env && bunx next dev", "dev": "next dev",
"build": "bun run check-env && bunx next build", "build": "next build",
"start": "bun run check-env && bunx next start", "start": "next start",
"lint": "bunx next lint" "lint": "next lint"
}, },
"prisma": { "prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts" "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"

3953
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,8 +12,8 @@ import ContentType from "@/types/ContentType";
export default function onlyAllowFollowingContentType( export default function onlyAllowFollowingContentType(
contentTypes: ContentType & (string | {}) | ContentType[] | (string | {})[] contentTypes: ContentType & (string | {}) | ContentType[] | (string | {})[]
) { ) {
// Retrieve the current request's content type. // Retrieve the current request's content type and ignore any parameters.
const currentContentType = headers().get("Content-Type"); const currentContentType = headers().get("Content-Type")?.split(';')[0].trim();
// Normalize the input parameter to an array to simplify the inclusion check. // Normalize the input parameter to an array to simplify the inclusion check.
const allowedContentTypes = Array.isArray(contentTypes) const allowedContentTypes = Array.isArray(contentTypes)

View File

@ -1,9 +1,9 @@
import { Menu, rem } from "@mantine/core"; import { Menu, rem } from "@mantine/core";
import React from "react"; import React from "react";
import { UserMenuItem } from "../types/UserMenuItem"; import { UserMenuItem as UserMenuItemType } from "../types/UserMenuItem";
interface Props { interface Props {
item: UserMenuItem; item: UserMenuItemType;
} }
export default function UserMenuItem({ item }: Props) { export default function UserMenuItem({ item }: Props) {