You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,19 @@ Packages contain a list of prebuild tree-sitter grammars to use with the `@ast-g
8
8
9
9
Typical usage:
10
10
11
-
1. Install the language package in your project
11
+
1. Install the language package in your project.
12
+
13
+
> [!NOTE]
14
+
> As of [PNPM version 10](https://socket.dev/blog/pnpm-10-0-0-blocks-lifecycle-scripts-by-default), postinstall scripts are no longer run by default. All language packages contain [postinstall](https://github.com/ast-grep/langs/blob/main/scripts/setup/index.ts#L20) scripts that will place the relevant language parsing library in the correct location for the targeted platform. You must explicitly allowlist the postinstall script to run for your desired language package.
12
15
13
16
```bash
17
+
# PNPM <v10 - postinstall scripts run by default.
14
18
pnpm install @ast-grep/lang-{name}
19
+
# PNPM v10 and above: Explictly allow the postinstall script to run for this language package
0 commit comments