From 922286fd0492098531234c6cf4d38a53677b0a67 Mon Sep 17 00:00:00 2001 From: Aral Balkan Date: Mon, 4 Jul 2022 10:23:00 +0100 Subject: [PATCH 1/2] Add nodemon dependency to installation instructions Without this, you will get an error when running `npm run dev` after following the installation instructions. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9eb26b5..a610e57 100755 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ Tree-sitter grammar for [svelte](https://svelte.dev) npm i tree-sitter-svelte tree-sitter ``` +Tree-sitter also requires [nodemon](https://nodemon.io/) to run, so also install that if you don’t already have it: + +``` +npm i -g nodemon +``` + # Dev After installation (`npm i`), From 219dfdceaf26ada9da5723f6b16cdd1348642c80 Mon Sep 17 00:00:00 2001 From: Aral Balkan Date: Mon, 4 Jul 2022 10:26:42 +0100 Subject: [PATCH 2/2] Add pnpm requirement to installation instructions Without pnpm, `npm run dev` fails. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a610e57..5d2ce61 100755 --- a/README.md +++ b/README.md @@ -14,6 +14,12 @@ Tree-sitter also requires [nodemon](https://nodemon.io/) to run, so also install npm i -g nodemon ``` +Finally, you will need [pnpm](https://pnpm.io/installation). If you’re running Node 16.13 or later, it comes as part of Node so you can simply run the following to activate it: + +``` +corepack enable +``` + # Dev After installation (`npm i`),