pnpm-settings-migrator 0.0.8 → 0.0.9
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
CHANGED
|
@@ -45,14 +45,14 @@ Disable migrating `resolutions` field in `package.json`.
|
|
|
45
45
|
|
|
46
46
|
Disable removing pnpm settings in `.npmrc` file.
|
|
47
47
|
|
|
48
|
-
###
|
|
48
|
+
### `--no-clean-package-json`
|
|
49
49
|
|
|
50
50
|
- **Type**: `boolean`
|
|
51
51
|
- **Default**: `false`
|
|
52
52
|
|
|
53
53
|
Disable removing `pnpm` field in `package.json`.
|
|
54
54
|
|
|
55
|
-
###
|
|
55
|
+
### `--no-newline-between`
|
|
56
56
|
|
|
57
57
|
- **Type**: `boolean`
|
|
58
58
|
- **Default**: `false`
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import { cac } from 'cac';
|
|
3
3
|
import { consola } from 'consola';
|
|
4
|
-
import { b as bold, d as dim, a as magenta, m as migratePnpmSettings, g as green, c as red } from './shared/pnpm-settings-migrator.
|
|
4
|
+
import { b as bold, d as dim, a as magenta, m as migratePnpmSettings, g as green, c as red } from './shared/pnpm-settings-migrator.BAr_lchq.mjs';
|
|
5
5
|
import '@ntnyq/utils';
|
|
6
6
|
import 'defu';
|
|
7
7
|
import 'detect-indent';
|
|
@@ -14,7 +14,7 @@ import 'read-ini-file';
|
|
|
14
14
|
import 'uncase';
|
|
15
15
|
|
|
16
16
|
const name = "pnpm-settings-migrator";
|
|
17
|
-
const version = "0.0.
|
|
17
|
+
const version = "0.0.9";
|
|
18
18
|
|
|
19
19
|
const cli = cac(name);
|
|
20
20
|
cli.version(version).option("--cwd [cwd]", "Current working directory").option("--sort-keys", "Sort keys when write pnpm-workspace.yaml").option(
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as migratePnpmSettings, r as resolveOptions } from './shared/pnpm-settings-migrator.
|
|
1
|
+
export { m as migratePnpmSettings, r as resolveOptions } from './shared/pnpm-settings-migrator.BAr_lchq.mjs';
|
|
2
2
|
import '@ntnyq/utils';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import 'defu';
|
package/dist/shared/{pnpm-settings-migrator.Cwv3sjIn.mjs → pnpm-settings-migrator.BAr_lchq.mjs}
RENAMED
|
@@ -138,12 +138,7 @@ async function migratePnpmSettings(rawOptions = {}) {
|
|
|
138
138
|
);
|
|
139
139
|
Object.entries(pnpmWorkspaceResult).forEach(([key, value], index) => {
|
|
140
140
|
yamlDocument.add({ key, value });
|
|
141
|
-
if (options.newlineBetween && index < Object.keys(pnpmWorkspaceResult).length - 1)
|
|
142
|
-
yamlDocument.add({
|
|
143
|
-
key: "",
|
|
144
|
-
value: null
|
|
145
|
-
});
|
|
146
|
-
}
|
|
141
|
+
if (options.newlineBetween && index < Object.keys(pnpmWorkspaceResult).length - 1) ;
|
|
147
142
|
});
|
|
148
143
|
await fsWriteFile(
|
|
149
144
|
pnpmWorkspaceYamlPath,
|
package/package.json
CHANGED