fix: pin source-map dependency and clean up website

This commit is contained in:
iCrawl
2023-11-08 18:43:02 +01:00
parent e72b552ae2
commit 4a5e9fc1de
8 changed files with 23 additions and 410 deletions

View File

@@ -6,7 +6,6 @@
"private": true,
"scripts": {
"test": "vitest run",
"test:lighthouse": "lighthouse http://localhost:3000 --output-path=./lighthouse-results",
"build:check": "tsc --noEmit",
"build:local": "pnpm run build:prod",
"build:prod": "next build",
@@ -86,7 +85,6 @@
"hast-util-to-string": "^2.0.0",
"hastscript": "^8.0.0",
"html-escaper": "^3.0.3",
"lighthouse": "^11.3.0",
"postcss": "^8.4.31",
"prettier": "^3.0.3",
"turbo": "^1.10.16",

View File

@@ -4,19 +4,21 @@
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "preserve",
"baseUrl": ".",
"outDir": "dist",
"noEmit": true,
"paths": {
"~/*": ["./src/*"],
"contentlayer/generated": ["./.contentlayer/generated"]
},
"esModuleInterop": true,
"allowJs": true,
"incremental": true,
"skipLibCheck": true,
"plugins": [
{
"name": "next"
}
]
],
"paths": {
"~/*": ["./src/*"],
"contentlayer/generated": ["./.contentlayer/generated"]
}
},
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", ".next/types/**/*.ts", ".contentlayer/generated"],
"exclude": ["node_modules"]

View File

@@ -6,7 +6,6 @@
"private": true,
"scripts": {
"test": "vitest run",
"test:lighthouse": "lighthouse http://localhost:3000 --output-path=./lighthouse-results",
"build:copy_readme": "cpy '../../packages/(discord.js|brokers|builders|collection|core|formatters|next|proxy|rest|util|voice|ws)/README.md' 'src/assets/readme' --rename='home-{{basename}}'",
"build:check": "tsc --noEmit",
"build:local": "cross-env NEXT_PUBLIC_LOCAL_DEV=true pnpm run build:prod",
@@ -92,7 +91,6 @@
"eslint-config-neon": "^0.1.57",
"eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^12.10.3",
"lighthouse": "^11.3.0",
"postcss": "^8.4.31",
"prettier": "^3.0.3",
"turbo": "^1.10.16",

View File

@@ -1,7 +1,6 @@
import type { ApiFunction, ApiItem } from '@discordjs/api-extractor-model';
import { ApiModel } from '@discordjs/api-extractor-model';
import dynamic from 'next/dynamic';
import {} from 'next/types';
import { notFound } from 'next/navigation';
import { cache, type PropsWithChildren } from 'react';
import { fetchModelJSON, fetchVersions } from '~/app/docAPI';

View File

@@ -4,19 +4,21 @@
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "preserve",
"baseUrl": ".",
"outDir": "dist",
"noEmit": true,
"paths": {
"~/*": ["./src/*"]
},
"esModuleInterop": true,
"allowJs": true,
"incremental": true,
"skipLibCheck": true,
"plugins": [
{
"name": "next"
}
]
],
"paths": {
"~/*": ["./src/*"]
}
},
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", ".next/types/**/*.ts"],
"include": ["*.ts", "*.tsx", "next-env.d.ts", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}