@pnpm/cli.utils 1101.0.8 → 1101.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/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './packageIsInstallable.js';
2
+ export * from './promptPageSize.js';
2
3
  export * from './readDepNameCompletions.js';
3
4
  export * from './readProjectManifest.js';
4
5
  export * from './recursiveSummary.js';
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { packageManager } from '@pnpm/cli.meta';
2
2
  export * from './packageIsInstallable.js';
3
+ export * from './promptPageSize.js';
3
4
  export * from './readDepNameCompletions.js';
4
5
  export * from './readProjectManifest.js';
5
6
  export * from './recursiveSummary.js';
@@ -0,0 +1 @@
1
+ export declare function interactivePromptPageSize(): number;
@@ -0,0 +1,5 @@
1
+ export function interactivePromptPageSize() {
2
+ const availableRows = process.stdout.rows;
3
+ return availableRows == null ? 7 : Math.max(7, availableRows - 6);
4
+ }
5
+ //# sourceMappingURL=promptPageSize.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/cli.utils",
3
- "version": "1101.0.8",
3
+ "version": "1101.0.9",
4
4
  "description": "Utils for pnpm commands",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -8,7 +8,10 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "funding": "https://opencollective.com/pnpm",
11
- "repository": "https://github.com/pnpm/pnpm/tree/main/cli/utils",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/pnpm/pnpm/tree/main/cli/utils"
14
+ },
12
15
  "homepage": "https://github.com/pnpm/pnpm/tree/main/cli/utils#readme",
13
16
  "bugs": {
14
17
  "url": "https://github.com/pnpm/pnpm/issues"
@@ -26,18 +29,18 @@
26
29
  "dependencies": {
27
30
  "chalk": "^5.6.2",
28
31
  "load-json-file": "^7.0.1",
29
- "@pnpm/config.package-is-installable": "1100.0.7",
32
+ "@pnpm/config.package-is-installable": "1100.0.8",
33
+ "@pnpm/cli.meta": "1100.0.6",
34
+ "@pnpm/pkg-manifest.utils": "1100.2.2",
30
35
  "@pnpm/error": "1100.0.0",
31
- "@pnpm/pkg-manifest.utils": "1100.2.1",
32
- "@pnpm/cli.meta": "1100.0.5",
33
- "@pnpm/workspace.project-manifest-reader": "1100.0.9",
34
- "@pnpm/types": "1101.2.0"
36
+ "@pnpm/workspace.project-manifest-reader": "1100.0.10",
37
+ "@pnpm/types": "1101.3.0"
35
38
  },
36
39
  "peerDependencies": {
37
40
  "@pnpm/logger": "^1001.0.1"
38
41
  },
39
42
  "devDependencies": {
40
- "@pnpm/cli.utils": "1101.0.8",
43
+ "@pnpm/cli.utils": "1101.0.9",
41
44
  "@pnpm/logger": "1100.0.0"
42
45
  },
43
46
  "engines": {