Skip to content

Commit

Permalink
fix: build docs in GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Apr 11, 2024
1 parent ec07d2c commit 99fc73f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-
- run: |
bun install
cd docs
bun install
bun run build
Expand Down
Binary file modified docs/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const withNextra = nextra(getNextraOptions());

module.exports = withNextra(
getWithNextraOptions({
transpilePackages: ['react-native-unistyles'],
transpilePackages: ['react-native-unistyles', '@grapp/stacks'],
webpack: config => {
Object.assign(config.resolve.alias, {
react: path.resolve(__dirname, '..', 'node_modules', 'react'),
Expand Down
5 changes: 1 addition & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
},
"dependencies": {
"@grapp/nextra-theme": "^0.3.8",
"@grapp/stacks": "3.0.0",
"react": "^18.2.0",
"@grapp/stacks": "3.0.3",
"react-element-to-jsx-string": "^15.0.0",
"react-native": "0.73.6",
"react-native-unistyles": "^2.5.5",
"react-native-web": "^0.19.10"
}
}

0 comments on commit 99fc73f

Please sign in to comment.