@pnpm/config 16.1.2 → 16.1.4

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/Config.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Project, ProjectManifest, ProjectsGraph, Registries } from '@pnpm/types';
2
2
  import type { Hooks } from '@pnpm/pnpmfile';
3
- export declare type UniversalOptions = Pick<Config, 'color' | 'dir' | 'rawConfig' | 'rawLocalConfig'>;
3
+ export type UniversalOptions = Pick<Config, 'color' | 'dir' | 'rawConfig' | 'rawLocalConfig'>;
4
4
  export interface Config {
5
5
  allProjects?: Project[];
6
6
  selectedProjectsGraph?: ProjectsGraph;
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Config, UniversalOptions } from './Config';
2
2
  export * from './readLocalConfig';
3
3
  export { Config, UniversalOptions };
4
4
  export declare const types: any;
5
- export declare type CliOptions = Record<string, unknown> & {
5
+ export type CliOptions = Record<string, unknown> & {
6
6
  dir?: string;
7
7
  };
8
8
  export declare function getConfig(opts: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/config",
3
- "version": "16.1.2",
3
+ "version": "16.1.4",
4
4
  "description": "Gets configuration options for pnpm",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "lib",
9
9
  "!*.map"
10
10
  ],
11
- "repository": "https://github.com/pnpm/pnpm/blob/main/packages/config",
11
+ "repository": "https://github.com/pnpm/pnpm/blob/main/config/config",
12
12
  "keywords": [
13
13
  "pnpm7",
14
14
  "pnpm",
@@ -21,17 +21,10 @@
21
21
  "bugs": {
22
22
  "url": "https://github.com/pnpm/pnpm/issues"
23
23
  },
24
- "homepage": "https://github.com/pnpm/pnpm/blob/main/packages/config#readme",
24
+ "homepage": "https://github.com/pnpm/pnpm/blob/main/config/config#readme",
25
25
  "dependencies": {
26
26
  "@pnpm/config.env-replace": "1.0.0",
27
- "@pnpm/constants": "6.1.0",
28
- "@pnpm/error": "4.0.0",
29
- "@pnpm/git-utils": "0.1.0",
30
- "@pnpm/matcher": "4.0.0",
31
27
  "@pnpm/npm-conf": "2.0.4",
32
- "@pnpm/pnpmfile": "4.0.8",
33
- "@pnpm/read-project-manifest": "4.0.2",
34
- "@pnpm/types": "8.9.0",
35
28
  "camelcase": "^6.3.0",
36
29
  "camelcase-keys": "^6.2.2",
37
30
  "can-write-to-dir": "^1.1.1",
@@ -43,16 +36,23 @@
43
36
  "ramda": "npm:@pnpm/ramda@0.28.1",
44
37
  "read-ini-file": "^3.1.0",
45
38
  "realpath-missing": "^1.1.0",
46
- "which": "^2.0.2"
39
+ "which": "^2.0.2",
40
+ "@pnpm/constants": "6.1.0",
41
+ "@pnpm/error": "4.0.0",
42
+ "@pnpm/git-utils": "0.1.0",
43
+ "@pnpm/matcher": "4.0.1",
44
+ "@pnpm/pnpmfile": "4.0.10",
45
+ "@pnpm/read-project-manifest": "4.1.0",
46
+ "@pnpm/types": "8.9.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@pnpm/config": "16.1.2",
50
- "@pnpm/prepare": "0.0.57",
51
- "@pnpm/test-fixtures": "0.0.26",
52
49
  "@types/is-windows": "^1.0.0",
53
50
  "@types/ramda": "0.28.15",
54
51
  "@types/which": "^2.0.1",
55
- "symlink-dir": "^5.0.1"
52
+ "symlink-dir": "^5.1.0",
53
+ "@pnpm/config": "16.1.4",
54
+ "@pnpm/prepare": "0.0.57",
55
+ "@pnpm/test-fixtures": "0.0.26"
56
56
  },
57
57
  "funding": "https://opencollective.com/pnpm",
58
58
  "exports": {
@@ -1,3 +0,0 @@
1
- export default function findBestGlobalPrefixOnWindows(defaultNpmGlobalPrefix: string, env: {
2
- [key: string]: string | undefined;
3
- }): string;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const path_1 = __importDefault(require("path"));
7
- const is_subdir_1 = __importDefault(require("is-subdir"));
8
- function findBestGlobalPrefixOnWindows(defaultNpmGlobalPrefix, env) {
9
- if (process.platform !== 'win32')
10
- return defaultNpmGlobalPrefix;
11
- if ((env.LOCALAPPDATA != null && (0, is_subdir_1.default)(env.LOCALAPPDATA, defaultNpmGlobalPrefix)) ||
12
- (env.APPDATA != null && (0, is_subdir_1.default)(env.APPDATA, defaultNpmGlobalPrefix))) {
13
- return defaultNpmGlobalPrefix;
14
- }
15
- if (env.APPDATA)
16
- return path_1.default.join(env.APPDATA, 'npm');
17
- return defaultNpmGlobalPrefix;
18
- }
19
- exports.default = findBestGlobalPrefixOnWindows;
20
- //# sourceMappingURL=findBestGlobalPrefix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"findBestGlobalPrefix.js","sourceRoot":"","sources":["../src/findBestGlobalPrefix.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,0DAAgC;AAEhC,SAAwB,6BAA6B,CACnD,sBAA8B,EAC9B,GAA0C;IAE1C,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO;QAAE,OAAO,sBAAsB,CAAA;IAC/D,IACE,CAAC,GAAG,CAAC,YAAY,IAAI,IAAI,IAAI,IAAA,mBAAQ,EAAC,GAAG,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAC;QAChF,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI,IAAI,IAAA,mBAAQ,EAAC,GAAG,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC,EACtE;QACA,OAAO,sBAAsB,CAAA;KAC9B;IACD,IAAI,GAAG,CAAC,OAAO;QAAE,OAAO,cAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IACrD,OAAO,sBAAsB,CAAA;AAC/B,CAAC;AAbD,gDAaC"}