quickdircleaner 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -40
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,43 +4,3 @@
|
|
|
4
4
|
npm install quickdircleaner
|
|
5
5
|
```
|
|
6
6
|
|
|
7
|
-
Normally `INIT_CWD` is set so the cleaner targets your project root.
|
|
8
|
-
|
|
9
|
-
### pnpm v10+
|
|
10
|
-
|
|
11
|
-
pnpm **does not run** this package’s `postinstall` unless you allow it. You will see a message like **“Ignored build scripts: quickdircleaner”** and the install will look like a normal dependency add.
|
|
12
|
-
|
|
13
|
-
**Option A — allowlist in your project `package.json`:**
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"pnpm": {
|
|
18
|
-
"onlyBuiltDependencies": ["quickdircleaner"]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then run `pnpm install` again.
|
|
24
|
-
|
|
25
|
-
**Option B:** run `pnpm approve-builds` and approve `quickdircleaner`.
|
|
26
|
-
|
|
27
|
-
See [pnpm: dependency scripts](https://pnpm.io/settings#ignoredependscripts).
|
|
28
|
-
|
|
29
|
-
### Run the cleaner manually (same as postinstall)
|
|
30
|
-
|
|
31
|
-
From your project root (where your `package.json` lives):
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
node node_modules/quickdircleaner/index.js
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Restore
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npx restore-clean
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
(`restore-clean` is the bin name — not `restore -clean`.)
|
|
44
|
-
|
|
45
|
-
After restore, this package removes **`node_modules/quickdircleaner`** on purpose. Otherwise `npm install` / `pnpm install` would see the dependency as already present and **would not run `postinstall` again**. Run **`npm install`** or **`pnpm install`** once to reinstall it; with pnpm, keep `quickdircleaner` in `onlyBuiltDependencies` if you use that.
|
|
46
|
-
|
package/package.json
CHANGED