Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3429474

Browse files
authored
feat(gatsby-recipes): Add description to Gatsby Plugin resource (gatsbyjs#24602)
* Add `description` to npm package resource * Use require.resolve instead of manually joining node_modules path * Use resolve-pkg to safely resolve packages just like require() would do instead of manually joining paths with node_modules * Add gatsbyPlugin.description to provider * Throw nice error when theme is not npm installed and shadowable/ed files cannot be resolved * Fix tests * Potential Windows unit test fix * Remove resolve-pkg module as it breaks Windows * Use resolveCwd to fix monorepo compatibility for finding shadowed/able files * Temporarily add console.log to debug windows issue * Add some more logs for debugging * Fix windows * remove outdated dep from yarn lockfile
1 parent 9834440 commit 3429474

File tree

5 files changed

+345
-101
lines changed

5 files changed

+345
-101
lines changed

packages/gatsby-recipes/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"remark-mdx": "^1.6.1",
5959
"remark-parse": "^6.0.3",
6060
"remark-stringify": "^8.0.0",
61+
"resolve-cwd": "^3.0.0",
6162
"semver": "^7.3.2",
6263
"single-trailing-newline": "^1.0.0",
6364
"style-to-object": "^0.3.0",

0 commit comments

Comments
 (0)