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
The `postinstall` script helper for handling native bindings in legacy `npm` versions, this is a reimplementation of the [`node-install`][node-install] functionality from [`esbuild`][esbuild] for [`napi-rs`][napi-rs] ecosystem packages like [`rollup`][rollup], [`@swc/core`][swc-core] and [`unrs-resolver`][unrs-resolver].
16
+
The `postinstall` script helper for handling native bindings in `npm` versions
17
+
affected by [npm/cli#4828](https://github.com/npm/cli/issues/4828). This is a
18
+
reimplementation of the [`node-install`][node-install] functionality from
19
+
[`esbuild`][esbuild] for [`napi-rs`][napi-rs] ecosystem packages like
20
+
[`rollup`][rollup], [`@swc/core`][swc-core] and [`unrs-resolver`][unrs-resolver].
17
21
18
22
For more details, please refer to the following issues:
19
23
@@ -24,6 +28,8 @@ For more details, please refer to the following issues:
24
28
## TOC <!-- omit in toc -->
25
29
26
30
-[Usage](#usage)
31
+
-[TL;DR for package users](#tldr-for-package-users)
32
+
-[Notes for package authors](#notes-for-package-authors)
27
33
-[Install](#install)
28
34
-[CLI](#cli)
29
35
-[API](#api)
@@ -37,6 +43,28 @@ For more details, please refer to the following issues:
37
43
38
44
## Usage
39
45
46
+
### TL;DR for package users
47
+
48
+
- If you only see `napi-postinstall` in a dependency's `postinstall` script,
49
+
this script is mainly a workaround for `npm` users affected by
0 commit comments