Skip to content

Commit

Permalink
fix: fixes linting breaking the dev site
Browse files Browse the repository at this point in the history
  • Loading branch information
fullykubed committed Mar 20, 2024
1 parent 51c257f commit 3264046
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/nix/devenv/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ set -eo pipefail
# Needed to avoid running out of memory
export NODE_OPTIONS="--max-old-space-size=8192"

#######################################
## Install node modules
#######################################
(
cd "$DEVENV_ROOT"
npm i
)

#######################################
## Terraform
#######################################
Expand Down
1 change: 1 addition & 0 deletions packages/nix/devenv/precommit-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eo pipefail

(
cd "$DEVENV_ROOT/packages/website"
export LINT=true
npm i
./node_modules/.bin/next build
)
3 changes: 3 additions & 0 deletions packages/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ yarn-error.log*
next-env.d.ts

.vscode

.lint
build
3 changes: 2 additions & 1 deletion packages/website/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const withMDX = createMDX({

/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx']
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
distDir: process.env.LINT === "true" ? '.lint' : 'build'
}

export default withBundleAnalyzer(withMDX(nextConfig))
4 changes: 3 additions & 1 deletion packages/website/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"next-env.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
"build/types/**/*.ts",
".lint/types/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 3264046

Please sign in to comment.