Skip to content

Commit

Permalink
fix: building static html fails for docs example
Browse files Browse the repository at this point in the history
* refactor: fix build script

* fix: unable to build

---------

Co-authored-by: Trent S <[email protected]>
  • Loading branch information
trentschnee and trentschnee committed Feb 3, 2023
1 parent 489923d commit e9eeb5b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ yarn-error.log
# Yarn Integrity file
.yarn-integrity
lib
.
dist
dist/
4 changes: 3 additions & 1 deletion apps/docs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "gatsby develop"
"start": "gatsby develop",
"serve": "gatsby serve",
"clean": "gatsby clean"
},
"dependencies": {
"@emotion/react": "^11.10.5",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"access": "public"
},
"scripts": {
"build": "lerna run build",
"build": "yarn workspace docs-example build",
"start": "yarn workspace docs-example start",
"serve": "yarn workspace docs-example serve",
"clean": "yarn workspace docs-example clean",
"build:joytheme": "lerna run --scope \"gatsby-theme-joy-ui\" build",
"start:joytheme": "lerna run --scope \"gatsby-theme-joy-ui\" start",
"watch:joytheme": "npm run start:joytheme",
Expand Down
3 changes: 1 addition & 2 deletions packages/gatsby-theme-joy-ui/dist/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
}
var GLinkPropsSpread = {
to: to,
replace: replace,
scroll: scroll
replace: replace
};
if (noLinkStyle) {
return /*#__PURE__*/React.createElement(GatsbyLinkComposed, (0, _extends2.default)({
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-joy-ui/src/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Link = React.forwardRef<HTMLAnchorElement, _LinkProps>(function Link(props

return <JoyLink className={className} href={href} ref={ref} {...other} />;
}
const GLinkPropsSpread = { to, replace, scroll };
const GLinkPropsSpread = { to, replace };

if (noLinkStyle) {
return <GatsbyLinkComposed className={className} ref={ref} {...GLinkPropsSpread} {...other} />;
Expand Down

0 comments on commit e9eeb5b

Please sign in to comment.