File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
packages/gatsby-plugin-theme-ui Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,13 @@ exports.onPreInit = (__, options) => {
5
5
try {
6
6
options . preset = require ( preset )
7
7
} catch {
8
- reporter . error (
9
- `It appears your theme dependency is not installed. Try running \` ${ generateInstallInstructions ( ) } ${ themeModule } \` `
8
+ reporter . warn (
9
+ `It appears your theme dependency is not installed. Only local styles will appear. `
10
10
)
11
11
}
12
12
}
13
13
}
14
14
15
- function generateInstallInstructions ( ) {
16
- const { getConfigStore } = require ( `gatsby-core-utils` )
17
-
18
- const packageMangerConfigKey = `cli.packageManager`
19
- const PACKAGE_MANGER = getConfigStore ( ) . get ( packageMangerConfigKey ) || `yarn`
20
-
21
- const installKeyWord = PACKAGE_MANGER === `yarn` ? 'add' : 'install'
22
-
23
- return `${ PACKAGE_MANGER } ${ installKeyWord } `
24
- }
25
-
26
15
exports . createSchemaCustomization = ( { actions } ) => {
27
16
const { createTypes } = actions
28
17
Original file line number Diff line number Diff line change 6
6
"license" : " MIT" ,
7
7
"peerDependencies" : {
8
8
"gatsby" : " ^2.13.1" ,
9
- "theme-ui" : " ^0.3.0" ,
10
- "gatsby-core-utils" : " ^1.2.0"
9
+ "theme-ui" : " ^0.3.0"
11
10
},
12
11
"keywords" : [
13
12
" gatsby" ,
You can’t perform that action at this time.
0 commit comments