pnpm-settings-migrator 0.7.0 → 0.8.1
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 +24 -2
- package/dist/cli.mjs +549 -100
- package/dist/index.d.mts +9 -2
- package/dist/index.mjs +528 -97
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -15,6 +15,20 @@ Run in your workspace root:
|
|
|
15
15
|
pnpm dlx pnpm-settings-migrator
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
After migration, the CLI reports how many root settings changed and shows a
|
|
19
|
+
GitHub-style YAML diff. Removed lines are red and added lines are green:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
ℹ 2 settings changed
|
|
23
|
+
packages:
|
|
24
|
+
- packages/*
|
|
25
|
+
+ - apps/*
|
|
26
|
+
|
|
27
|
+
overrides:
|
|
28
|
+
foo: 1.0.0
|
|
29
|
+
+ bar: 2.0.0
|
|
30
|
+
```
|
|
31
|
+
|
|
18
32
|
## CLI Options
|
|
19
33
|
|
|
20
34
|
### `--cwd`
|
|
@@ -43,8 +57,8 @@ Compatibility target for migrated settings:
|
|
|
43
57
|
- `v10`: keep legacy settings as-is and migrate schema-aligned pnpm config keys from `.npmrc`
|
|
44
58
|
- `v11`: normalize to v11-compatible settings (`allowBuilds`, `allowUnusedPatches`, etc.)
|
|
45
59
|
and migrate all non auth/registry `.npmrc` entries to `pnpm-workspace.yaml`
|
|
46
|
-
- `v12`:
|
|
47
|
-
|
|
60
|
+
- `v12`: use the same settings-key migration as `v11`. Lockfile migration and
|
|
61
|
+
validation are outside this tool's scope.
|
|
48
62
|
|
|
49
63
|
In `v11` and `v12` modes, normalization is applied both to settings read from
|
|
50
64
|
legacy files and to deprecated settings already present in
|
|
@@ -113,6 +127,14 @@ Strategy to handle conflicts when merging settings with existing `pnpm-workspace
|
|
|
113
127
|
|
|
114
128
|
Disable migrating `resolutions` field in `package.json`.
|
|
115
129
|
|
|
130
|
+
### `--no-show-changes`
|
|
131
|
+
|
|
132
|
+
- **Type**: `boolean`
|
|
133
|
+
- **Default behavior**: `showChanges=true` (use this flag to disable)
|
|
134
|
+
|
|
135
|
+
Disable showing the settings diff after migration. Library consumers can set
|
|
136
|
+
`showChanges: false`.
|
|
137
|
+
|
|
116
138
|
### `--no-clean-npmrc`
|
|
117
139
|
|
|
118
140
|
- **Type**: `boolean`
|