Skip to content

Commit

Permalink
docs: Add note about checking for existing type key (#1381)
Browse files Browse the repository at this point in the history
Note: There are multiple ways we could go about updating the text, but
this seemed the least invasive for now.

Closes #1380
  • Loading branch information
webchick authored Jan 7, 2025
1 parent 0870384 commit fe3e7ec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Node.js and npm support two types of projects, let's call them legacy and modern

![Update package.json with VSCode](./images/vscode-type-module.png)

> More recent versions of npm might already have `"type": "commonjs",` pre-defined; if so, simply replace `commonjs` with `module`.
> If you want to learn more about JSON and its syntax, we recommend [this tutorial on MDN](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON).
## Installing necessary libraries {#install-libraries}
Expand Down

0 comments on commit fe3e7ec

Please sign in to comment.