-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from AmazeeLabs/fix-netlify-dev
node_modules is messed up by "netlify dev"
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ | |
public | ||
styles.css | ||
persisted-store | ||
|
||
# Deno comes with "netlify dev". We don't need its lock file. | ||
/deno.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This isn't a Deno project, yet Deno is added by netlify-cli when | ||
// "netlify dev" is used. | ||
// This file is picked up by Deno automatically, so we can use it to adjust Deno | ||
// behavior. | ||
{ | ||
// By default, Deno will use node_modules/.deno dir for storing dependencies. | ||
// Somehow it messes up node_modules resolution leading to Gatsby build | ||
// errors. So we prevent Deno from using node_modules dir. | ||
"nodeModulesDir": false, | ||
} |