From 0238588067fa6e2e46b37e976fa3bbb465de7448 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Fri, 2 Sep 2022 22:03:32 +0200 Subject: [PATCH] build: fix website build --- .husky/pre-commit | 2 +- packages/api-extractor-utils/.eslintrc.json | 6 +----- packages/builders/.eslintrc.json | 6 +----- packages/collection/.eslintrc.json | 6 +----- packages/proxy/.eslintrc.json | 6 +----- packages/rest/.eslintrc.json | 6 +----- packages/website/package.json | 4 ++-- packages/ws/.eslintrc.json | 6 +----- yarn.lock | 4 ++-- 9 files changed, 11 insertions(+), 35 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 3509da993..026aed957 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn build && yarn lint-staged +yarn build && yarn workspace @discordjs/website run build:local && yarn lint-staged diff --git a/packages/api-extractor-utils/.eslintrc.json b/packages/api-extractor-utils/.eslintrc.json index 6115ee5c0..99ef7cec8 100644 --- a/packages/api-extractor-utils/.eslintrc.json +++ b/packages/api-extractor-utils/.eslintrc.json @@ -1,7 +1,3 @@ { - "extends": "../../.eslintrc.json", - "plugins": ["eslint-plugin-tsdoc"], - "rules": { - "tsdoc/syntax": "warn" - } + "extends": "../../.eslintrc.json" } diff --git a/packages/builders/.eslintrc.json b/packages/builders/.eslintrc.json index 6115ee5c0..99ef7cec8 100644 --- a/packages/builders/.eslintrc.json +++ b/packages/builders/.eslintrc.json @@ -1,7 +1,3 @@ { - "extends": "../../.eslintrc.json", - "plugins": ["eslint-plugin-tsdoc"], - "rules": { - "tsdoc/syntax": "warn" - } + "extends": "../../.eslintrc.json" } diff --git a/packages/collection/.eslintrc.json b/packages/collection/.eslintrc.json index 6115ee5c0..99ef7cec8 100644 --- a/packages/collection/.eslintrc.json +++ b/packages/collection/.eslintrc.json @@ -1,7 +1,3 @@ { - "extends": "../../.eslintrc.json", - "plugins": ["eslint-plugin-tsdoc"], - "rules": { - "tsdoc/syntax": "warn" - } + "extends": "../../.eslintrc.json" } diff --git a/packages/proxy/.eslintrc.json b/packages/proxy/.eslintrc.json index 6115ee5c0..99ef7cec8 100644 --- a/packages/proxy/.eslintrc.json +++ b/packages/proxy/.eslintrc.json @@ -1,7 +1,3 @@ { - "extends": "../../.eslintrc.json", - "plugins": ["eslint-plugin-tsdoc"], - "rules": { - "tsdoc/syntax": "warn" - } + "extends": "../../.eslintrc.json" } diff --git a/packages/rest/.eslintrc.json b/packages/rest/.eslintrc.json index 6115ee5c0..99ef7cec8 100644 --- a/packages/rest/.eslintrc.json +++ b/packages/rest/.eslintrc.json @@ -1,7 +1,3 @@ { - "extends": "../../.eslintrc.json", - "plugins": ["eslint-plugin-tsdoc"], - "rules": { - "tsdoc/syntax": "warn" - } + "extends": "../../.eslintrc.json" } diff --git a/packages/website/package.json b/packages/website/package.json index 71bb96c5a..649c01a6a 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "test": "vitest run", - "build:local": "yarn run --top-level docs --force && yarn build:prod", + "build:local": "NEXT_PUBLIC_LOCAL_DEV=true yarn run --top-level docs --force && yarn build:prod", "build:prod": "yarn build:css && yarn build:next", "build:next": "next build", "build:css": "yarn generate:css", @@ -47,7 +47,7 @@ "@mantine/next": "^5.2.4", "@mantine/nprogress": "^5.2.4", "@mantine/spotlight": "^5.2.4", - "@microsoft/api-extractor-model": "^7.23.3", + "@microsoft/api-extractor-model": "7.23.3", "@microsoft/tsdoc": "0.14.1", "@microsoft/tsdoc-config": "0.16.1", "@vscode/codicons": "^0.0.32", diff --git a/packages/ws/.eslintrc.json b/packages/ws/.eslintrc.json index 6115ee5c0..99ef7cec8 100644 --- a/packages/ws/.eslintrc.json +++ b/packages/ws/.eslintrc.json @@ -1,7 +1,3 @@ { - "extends": "../../.eslintrc.json", - "plugins": ["eslint-plugin-tsdoc"], - "rules": { - "tsdoc/syntax": "warn" - } + "extends": "../../.eslintrc.json" } diff --git a/yarn.lock b/yarn.lock index ab1c5e212..05a4c01c6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1968,7 +1968,7 @@ __metadata: "@mantine/next": ^5.2.4 "@mantine/nprogress": ^5.2.4 "@mantine/spotlight": ^5.2.4 - "@microsoft/api-extractor-model": ^7.23.3 + "@microsoft/api-extractor-model": 7.23.3 "@microsoft/tsdoc": 0.14.1 "@microsoft/tsdoc-config": 0.16.1 "@testing-library/react": ^13.3.0 @@ -2896,7 +2896,7 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor-model@npm:7.24.0, @microsoft/api-extractor-model@npm:^7.23.3": +"@microsoft/api-extractor-model@npm:7.24.0": version: 7.24.0 resolution: "@microsoft/api-extractor-model@npm:7.24.0" dependencies: