Skip to content

Commit

Permalink
fix: loading of gatsby-config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Dec 10, 2020
1 parent 98f6570 commit 71d9308
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
8 changes: 1 addition & 7 deletions integrations/gatsby-theme-stories/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
module.exports = () => {
return {
plugins: ['gatsby-plugin-theme-ui', 'gatsby-plugin-typescript'].filter(
Boolean,
),
};
};
module.exports = require('./dist/gatsby-config');
2 changes: 1 addition & 1 deletion integrations/gatsby-theme-stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@component-controls/pages": "^2.2.1",
"@component-controls/webpack-compile": "^2.2.1",
"@component-controls/webpack-configs": "^2.2.1",
"gatsby-plugin-theme-ui": "^0.3.0",
"gatsby-plugin-theme-ui": "^0.6.0-alpha.3",
"gatsby-plugin-typescript": "^2.4.24",
"react-helmet": "^6.0.0",
"theme-ui": "^0.6.0-alpha.3"
Expand Down
7 changes: 6 additions & 1 deletion integrations/gatsby-theme-stories/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { config } from '../../rollup-config';

export default config({
input: ['./src/index.ts', './src/gatsby-node.ts', './src/gatsby-ssr.tsx'],
input: [
'./src/index.ts',
'./src/gatsby-node.ts',
'./src/gatsby-config.ts',
'./src/gatsby-ssr.tsx',
],
});
12 changes: 12 additions & 0 deletions integrations/gatsby-theme-stories/src/gatsby-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { theme } from '@component-controls/components';
module.exports = (): any => ({
plugins: [
{
resolve: 'gatsby-plugin-theme-ui',
options: {
preset: theme,
},
},
'gatsby-plugin-typescript',
],
});
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12923,10 +12923,10 @@ gatsby-plugin-root-import@^2.0.5:
resolved "https://registry.yarnpkg.com/gatsby-plugin-root-import/-/gatsby-plugin-root-import-2.0.5.tgz#04e520dc661d67f49aa7950f11b7c780fd2fdbd3"
integrity sha512-/yA6rFjfjiFb8D6nCjfFrrGqYQMkOt4J3u2o6s7VYEF/zpA5dw2C9ENJ5fDKkJSCbbwLiEIGVMMee3vMEip2zA==

gatsby-plugin-theme-ui@^0.3.0:
version "0.3.4"
resolved "https://registry.yarnpkg.com/gatsby-plugin-theme-ui/-/gatsby-plugin-theme-ui-0.3.4.tgz#b3ed23b847c9667a7b54f2f3549a02582e34b633"
integrity sha512-Jz3Z+LHkYJvKTotuibfKy5JgN74VuDYMphMk/dWe4P4AY/4MmJh9YN7Uvkr3J0hZc32x8E9m8YgbSDb3M53HsA==
gatsby-plugin-theme-ui@^0.6.0-alpha.3:
version "0.6.0-alpha.3"
resolved "https://registry.yarnpkg.com/gatsby-plugin-theme-ui/-/gatsby-plugin-theme-ui-0.6.0-alpha.3.tgz#68f9c17e72fd655ad4eee94eeabb1bcf9bbbddad"
integrity sha512-ZwGoa5YRanrQfEc/8Zm1O7Knrz5YwcBLVintCu5tOowDpgFrb7irJGLFL+jEauOatiKN2ybzF/PsDx45gOTY0A==

gatsby-plugin-typescript@^2.1.6, gatsby-plugin-typescript@^2.4.24:
version "2.4.24"
Expand Down

0 comments on commit 71d9308

Please sign in to comment.