Skip to content

Commit

Permalink
Fix website build
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Aug 8, 2024
1 parent f8a5a82 commit 8635d96
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 7 deletions.
38 changes: 35 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@docusaurus/tsconfig": "3.4.0",
"@types/react": "^18.2.29",
"graphql-relay": "^0.10.0",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"typescript": "5.5.4"
},
"browserslist": {
Expand Down
6 changes: 3 additions & 3 deletions website/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ cd "$(dirname "$0")/.."

# Build grats in the parent directory, using pnpm
cd ..
pnpm build
pnpm run build
cd website

# Rebuild/validate the grats code used in the website
pnpm grats
pnpm run grats
# Error if any of these changes have not been committed
git diff --exit-code || (echo "Uncommitted changes detected." && exit 1)

# Build the website
pnpm build
pnpm run build
7 changes: 7 additions & 0 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"ts-node": {
// these options are overrides used only by ts-node
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs"
}
},
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
Expand Down

0 comments on commit 8635d96

Please sign in to comment.