@pnpm/get-context 1000.0.0 → 1001.0.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/lib/checkCompatibility/BreakingChangeError.d.ts +12 -0
- package/lib/checkCompatibility/BreakingChangeError.js +14 -0
- package/lib/checkCompatibility/BreakingChangeError.js.map +1 -0
- package/lib/checkCompatibility/ErrorRelatedSources.d.ts +5 -0
- package/lib/checkCompatibility/ErrorRelatedSources.js +3 -0
- package/lib/checkCompatibility/ErrorRelatedSources.js.map +1 -0
- package/lib/checkCompatibility/ModulesBreakingChangeError.d.ts +9 -0
- package/lib/checkCompatibility/ModulesBreakingChangeError.js +18 -0
- package/lib/checkCompatibility/ModulesBreakingChangeError.js.map +1 -0
- package/lib/checkCompatibility/UnexpectedStoreError.d.ts +11 -0
- package/lib/checkCompatibility/UnexpectedStoreError.js +14 -0
- package/lib/checkCompatibility/UnexpectedStoreError.js.map +1 -0
- package/lib/checkCompatibility/UnexpectedVirtualStoreDirError.d.ts +11 -0
- package/lib/checkCompatibility/UnexpectedVirtualStoreDirError.js +14 -0
- package/lib/checkCompatibility/UnexpectedVirtualStoreDirError.js.map +1 -0
- package/lib/checkCompatibility/index.d.ts +6 -0
- package/lib/checkCompatibility/index.js +37 -0
- package/lib/checkCompatibility/index.js.map +1 -0
- package/lib/index.d.ts +5 -5
- package/lib/readLockfiles.d.ts +5 -5
- package/lib/readLockfiles.js +1 -1
- package/lib/readLockfiles.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PnpmError } from '@pnpm/error';
|
|
2
|
+
import { type ErrorRelatedSources } from './ErrorRelatedSources';
|
|
3
|
+
export type BreakingChangeErrorOptions = ErrorRelatedSources & {
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class BreakingChangeError extends PnpmError {
|
|
8
|
+
relatedIssue?: number;
|
|
9
|
+
relatedPR?: number;
|
|
10
|
+
additionalInformation?: string;
|
|
11
|
+
constructor(opts: BreakingChangeErrorOptions);
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BreakingChangeError = void 0;
|
|
4
|
+
const error_1 = require("@pnpm/error");
|
|
5
|
+
class BreakingChangeError extends error_1.PnpmError {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super(opts.code, opts.message);
|
|
8
|
+
this.relatedIssue = opts.relatedIssue;
|
|
9
|
+
this.relatedPR = opts.relatedPR;
|
|
10
|
+
this.additionalInformation = opts.additionalInformation;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.BreakingChangeError = BreakingChangeError;
|
|
14
|
+
//# sourceMappingURL=BreakingChangeError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BreakingChangeError.js","sourceRoot":"","sources":["../../src/checkCompatibility/BreakingChangeError.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAQvC,MAAa,mBAAoB,SAAQ,iBAAS;IAIhD,YAAa,IAAgC;QAC3C,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAA;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAC/B,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,CAAA;IACzD,CAAC;CACF;AAVD,kDAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorRelatedSources.js","sourceRoot":"","sources":["../../src/checkCompatibility/ErrorRelatedSources.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BreakingChangeError } from './BreakingChangeError';
|
|
2
|
+
import { type ErrorRelatedSources } from './ErrorRelatedSources';
|
|
3
|
+
export type ModulesBreakingChangeErrorOptions = ErrorRelatedSources & {
|
|
4
|
+
modulesPath: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class ModulesBreakingChangeError extends BreakingChangeError {
|
|
7
|
+
modulesPath: string;
|
|
8
|
+
constructor(opts: ModulesBreakingChangeErrorOptions);
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModulesBreakingChangeError = void 0;
|
|
4
|
+
const BreakingChangeError_1 = require("./BreakingChangeError");
|
|
5
|
+
class ModulesBreakingChangeError extends BreakingChangeError_1.BreakingChangeError {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
additionalInformation: opts.additionalInformation,
|
|
9
|
+
code: 'MODULES_BREAKING_CHANGE',
|
|
10
|
+
message: `The node_modules structure at "${opts.modulesPath}" is not compatible with the current pnpm version. Run "pnpm install --force" to recreate node_modules.`,
|
|
11
|
+
relatedIssue: opts.relatedIssue,
|
|
12
|
+
relatedPR: opts.relatedPR,
|
|
13
|
+
});
|
|
14
|
+
this.modulesPath = opts.modulesPath;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ModulesBreakingChangeError = ModulesBreakingChangeError;
|
|
18
|
+
//# sourceMappingURL=ModulesBreakingChangeError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModulesBreakingChangeError.js","sourceRoot":"","sources":["../../src/checkCompatibility/ModulesBreakingChangeError.ts"],"names":[],"mappings":";;;AAAA,+DAA2D;AAO3D,MAAa,0BAA2B,SAAQ,yCAAmB;IAEjE,YAAa,IAAuC;QAClD,KAAK,CAAC;YACJ,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,kCAAkC,IAAI,CAAC,WAAW,yGAAyG;YACpK,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAA;QACF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;IACrC,CAAC;CACF;AAZD,gEAYC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PnpmError } from '@pnpm/error';
|
|
2
|
+
export declare class UnexpectedStoreError extends PnpmError {
|
|
3
|
+
expectedStorePath: string;
|
|
4
|
+
actualStorePath: string;
|
|
5
|
+
modulesDir: string;
|
|
6
|
+
constructor(opts: {
|
|
7
|
+
expectedStorePath: string;
|
|
8
|
+
actualStorePath: string;
|
|
9
|
+
modulesDir: string;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnexpectedStoreError = void 0;
|
|
4
|
+
const error_1 = require("@pnpm/error");
|
|
5
|
+
class UnexpectedStoreError extends error_1.PnpmError {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super('UNEXPECTED_STORE', 'Unexpected store location');
|
|
8
|
+
this.expectedStorePath = opts.expectedStorePath;
|
|
9
|
+
this.actualStorePath = opts.actualStorePath;
|
|
10
|
+
this.modulesDir = opts.modulesDir;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.UnexpectedStoreError = UnexpectedStoreError;
|
|
14
|
+
//# sourceMappingURL=UnexpectedStoreError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnexpectedStoreError.js","sourceRoot":"","sources":["../../src/checkCompatibility/UnexpectedStoreError.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAEvC,MAAa,oBAAqB,SAAQ,iBAAS;IAIjD,YACE,IAIC;QAED,KAAK,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAA;QACtD,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAA;QAC/C,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAA;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;IACnC,CAAC;CACF;AAhBD,oDAgBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PnpmError } from '@pnpm/error';
|
|
2
|
+
export declare class UnexpectedVirtualStoreDirError extends PnpmError {
|
|
3
|
+
expected: string;
|
|
4
|
+
actual: string;
|
|
5
|
+
modulesDir: string;
|
|
6
|
+
constructor(opts: {
|
|
7
|
+
expected: string;
|
|
8
|
+
actual: string;
|
|
9
|
+
modulesDir: string;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnexpectedVirtualStoreDirError = void 0;
|
|
4
|
+
const error_1 = require("@pnpm/error");
|
|
5
|
+
class UnexpectedVirtualStoreDirError extends error_1.PnpmError {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super('UNEXPECTED_VIRTUAL_STORE', 'Unexpected virtual store location');
|
|
8
|
+
this.expected = opts.expected;
|
|
9
|
+
this.actual = opts.actual;
|
|
10
|
+
this.modulesDir = opts.modulesDir;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.UnexpectedVirtualStoreDirError = UnexpectedVirtualStoreDirError;
|
|
14
|
+
//# sourceMappingURL=UnexpectedVirtualStoreDirError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnexpectedVirtualStoreDirError.js","sourceRoot":"","sources":["../../src/checkCompatibility/UnexpectedVirtualStoreDirError.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAEvC,MAAa,8BAA+B,SAAQ,iBAAS;IAI3D,YACE,IAIC;QAED,KAAK,CAAC,0BAA0B,EAAE,mCAAmC,CAAC,CAAA;QACtE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;IACnC,CAAC;CACF;AAhBD,wEAgBC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
exports.checkCompatibility = checkCompatibility;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const constants_1 = require("@pnpm/constants");
|
|
9
|
+
const ModulesBreakingChangeError_1 = require("./ModulesBreakingChangeError");
|
|
10
|
+
const UnexpectedStoreError_1 = require("./UnexpectedStoreError");
|
|
11
|
+
const UnexpectedVirtualStoreDirError_1 = require("./UnexpectedVirtualStoreDirError");
|
|
12
|
+
function checkCompatibility(modules, opts) {
|
|
13
|
+
if (!modules.layoutVersion || modules.layoutVersion !== constants_1.LAYOUT_VERSION) {
|
|
14
|
+
throw new ModulesBreakingChangeError_1.ModulesBreakingChangeError({
|
|
15
|
+
modulesPath: opts.modulesDir,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
// Important: comparing paths with path.relative()
|
|
19
|
+
// is the only way to compare paths correctly on Windows
|
|
20
|
+
// as of Node.js 4-9
|
|
21
|
+
// See related issue: https://github.com/pnpm/pnpm/issues/996
|
|
22
|
+
if (!modules.storeDir || path_1.default.relative(modules.storeDir, opts.storeDir) !== '') {
|
|
23
|
+
throw new UnexpectedStoreError_1.UnexpectedStoreError({
|
|
24
|
+
actualStorePath: opts.storeDir,
|
|
25
|
+
expectedStorePath: modules.storeDir,
|
|
26
|
+
modulesDir: opts.modulesDir,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
if (modules.virtualStoreDir && path_1.default.relative(modules.virtualStoreDir, opts.virtualStoreDir) !== '') {
|
|
30
|
+
throw new UnexpectedVirtualStoreDirError_1.UnexpectedVirtualStoreDirError({
|
|
31
|
+
actual: opts.virtualStoreDir,
|
|
32
|
+
expected: modules.virtualStoreDir,
|
|
33
|
+
modulesDir: opts.modulesDir,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/checkCompatibility/index.ts"],"names":[],"mappings":";;;;;AAOA,gDA+BC;AAtCD,gDAAuB;AACvB,+CAAgD;AAEhD,6EAAyE;AACzE,iEAA6D;AAC7D,qFAAiF;AAEjF,SAAgB,kBAAkB,CAChC,OAAgB,EAChB,IAIC;IAED,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,aAAa,KAAK,0BAAc,EAAE,CAAC;QACvE,MAAM,IAAI,uDAA0B,CAAC;YACnC,WAAW,EAAE,IAAI,CAAC,UAAU;SAC7B,CAAC,CAAA;IACJ,CAAC;IACD,kDAAkD;IAClD,wDAAwD;IACxD,oBAAoB;IACpB,6DAA6D;IAC7D,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,cAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;QAC/E,MAAM,IAAI,2CAAoB,CAAC;YAC7B,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,iBAAiB,EAAE,OAAO,CAAC,QAAQ;YACnC,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,OAAO,CAAC,eAAe,IAAI,cAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,CAAC;QACnG,MAAM,IAAI,+DAA8B,CAAC;YACvC,MAAM,EAAE,IAAI,CAAC,eAAe;YAC5B,QAAQ,EAAE,OAAO,CAAC,eAAe;YACjC,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LockfileObject } from '@pnpm/lockfile.fs';
|
|
2
2
|
import { type IncludedDependencies, type Modules } from '@pnpm/modules-yaml';
|
|
3
3
|
import { type WorkspacePackages } from '@pnpm/resolver-base';
|
|
4
4
|
import { type DepPath, type HoistedDependencies, type ProjectId, type ProjectManifest, type ReadPackageHook, type Registries, type ProjectRootDir, type ProjectRootDirRealPath } from '@pnpm/types';
|
|
@@ -7,7 +7,7 @@ import { type DepPath, type HoistedDependencies, type ProjectId, type ProjectMan
|
|
|
7
7
|
* mutating the modules directory only or in a manner that does not influence dependency resolution.
|
|
8
8
|
*/
|
|
9
9
|
export interface PnpmContext {
|
|
10
|
-
currentLockfile:
|
|
10
|
+
currentLockfile: LockfileObject;
|
|
11
11
|
currentLockfileIsUpToDate: boolean;
|
|
12
12
|
existsCurrentLockfile: boolean;
|
|
13
13
|
existsWantedLockfile: boolean;
|
|
@@ -40,7 +40,7 @@ export interface PnpmContext {
|
|
|
40
40
|
/** As applied to existing modules directory, if it exists. */
|
|
41
41
|
skipped: Set<DepPath>;
|
|
42
42
|
storeDir: string;
|
|
43
|
-
wantedLockfile:
|
|
43
|
+
wantedLockfile: LockfileObject;
|
|
44
44
|
wantedLockfileIsModified: boolean;
|
|
45
45
|
workspacePackages: WorkspacePackages;
|
|
46
46
|
registries: Registries;
|
|
@@ -87,7 +87,7 @@ export interface GetContextOptions {
|
|
|
87
87
|
}
|
|
88
88
|
export declare function getContext(opts: GetContextOptions): Promise<PnpmContext>;
|
|
89
89
|
export interface PnpmSingleContext {
|
|
90
|
-
currentLockfile:
|
|
90
|
+
currentLockfile: LockfileObject;
|
|
91
91
|
currentLockfileIsUpToDate: boolean;
|
|
92
92
|
existsCurrentLockfile: boolean;
|
|
93
93
|
existsWantedLockfile: boolean;
|
|
@@ -115,7 +115,7 @@ export interface PnpmSingleContext {
|
|
|
115
115
|
/** As applied to existing modules directory, if it exists. */
|
|
116
116
|
skipped: Set<string>;
|
|
117
117
|
storeDir: string;
|
|
118
|
-
wantedLockfile:
|
|
118
|
+
wantedLockfile: LockfileObject;
|
|
119
119
|
wantedLockfileIsModified: boolean;
|
|
120
120
|
}
|
|
121
121
|
export declare function getContextForSingleImporter(manifest: ProjectManifest, opts: {
|
package/lib/readLockfiles.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LockfileObject } from '@pnpm/lockfile.fs';
|
|
2
2
|
import { type ProjectId, type ProjectRootDir } from '@pnpm/types';
|
|
3
3
|
export interface PnpmContext {
|
|
4
|
-
currentLockfile:
|
|
4
|
+
currentLockfile: LockfileObject;
|
|
5
5
|
existsCurrentLockfile: boolean;
|
|
6
6
|
existsWantedLockfile: boolean;
|
|
7
7
|
existsNonEmptyWantedLockfile: boolean;
|
|
8
|
-
wantedLockfile:
|
|
8
|
+
wantedLockfile: LockfileObject;
|
|
9
9
|
}
|
|
10
10
|
export declare function readLockfiles(opts: {
|
|
11
11
|
autoInstallPeers: boolean;
|
|
@@ -24,12 +24,12 @@ export declare function readLockfiles(opts: {
|
|
|
24
24
|
mergeGitBranchLockfiles?: boolean;
|
|
25
25
|
virtualStoreDir: string;
|
|
26
26
|
}): Promise<{
|
|
27
|
-
currentLockfile:
|
|
27
|
+
currentLockfile: LockfileObject;
|
|
28
28
|
currentLockfileIsUpToDate: boolean;
|
|
29
29
|
existsCurrentLockfile: boolean;
|
|
30
30
|
existsWantedLockfile: boolean;
|
|
31
31
|
existsNonEmptyWantedLockfile: boolean;
|
|
32
|
-
wantedLockfile:
|
|
32
|
+
wantedLockfile: LockfileObject;
|
|
33
33
|
wantedLockfileIsModified: boolean;
|
|
34
34
|
lockfileHadConflicts: boolean;
|
|
35
35
|
}>;
|
package/lib/readLockfiles.js
CHANGED
|
@@ -16,7 +16,7 @@ async function readLockfiles(opts) {
|
|
|
16
16
|
// a latest pnpm should not break all the builds
|
|
17
17
|
const lockfileOpts = {
|
|
18
18
|
ignoreIncompatible: opts.force || ci_info_1.isCI,
|
|
19
|
-
wantedVersions: [constants_1.LOCKFILE_VERSION
|
|
19
|
+
wantedVersions: [constants_1.LOCKFILE_VERSION],
|
|
20
20
|
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
21
21
|
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles,
|
|
22
22
|
};
|
package/lib/readLockfiles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readLockfiles.js","sourceRoot":"","sources":["../src/readLockfiles.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"readLockfiles.js","sourceRoot":"","sources":["../src/readLockfiles.ts"],"names":[],"mappings":";;;;;AA2BA,sCAwHC;AAnJD,+CAGwB;AACxB,mDAQ0B;AAC1B,yCAAqC;AAErC,qCAA8B;AAC9B,4DAAmC;AACnC,8DAAqC;AAU9B,KAAK,UAAU,aAAa,CACjC,IAgBC;IAWD,MAAM,qBAAqB,GAAG,4BAAgB,CAAA;IAC9C,wCAAwC;IACxC,gDAAgD;IAChD,MAAM,YAAY,GAAG;QACnB,kBAAkB,EAAE,IAAI,CAAC,KAAK,IAAI,cAAI;QACtC,cAAc,EAAE,CAAC,4BAAgB,CAAC;QAClC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;QAC/C,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;KACtD,CAAA;IACD,MAAM,SAAS,GAAG,EAAuD,CAAA;IACzE,IAAI,oBAAoB,GAAY,KAAK,CAAA;IACzC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC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QACrC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1C,wBAAwB,GAAG,IAAI,CAAA;YAC/B,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG;gBACrC,UAAU,EAAE,EAAE;aACf,CAAA;QACH,CAAC;IACH,CAAC;IACD,MAAM,oBAAoB,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAA;IAC7C,OAAO;QACL,eAAe;QACf,yBAAyB,EAAE,IAAA,gBAAM,EAAC,eAAe,EAAE,cAAc,CAAC;QAClE,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI;QACvC,oBAAoB;QACpB,4BAA4B,EAAE,oBAAoB,IAAI,CAAC,IAAA,6BAAe,EAAC,cAAc,CAAC;QACtF,cAAc;QACd,wBAAwB;QACxB,oBAAoB;KACrB,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/get-context",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1001.0.1",
|
|
4
4
|
"description": "Gets context information about a project",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/get-context#readme",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/ramda": "0.29.12",
|
|
27
|
-
"@pnpm/get-context": "
|
|
27
|
+
"@pnpm/get-context": "1001.0.1",
|
|
28
28
|
"@pnpm/logger": "1000.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"ci-info": "^3.9.0",
|
|
35
35
|
"path-absolute": "^1.0.1",
|
|
36
36
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
37
|
-
"@pnpm/constants": "1000.0.0",
|
|
38
|
-
"@pnpm/lockfile.fs": "1000.0.0",
|
|
39
37
|
"@pnpm/core-loggers": "1000.0.0",
|
|
40
|
-
"@pnpm/
|
|
38
|
+
"@pnpm/lockfile.fs": "1001.1.0",
|
|
41
39
|
"@pnpm/modules-yaml": "1000.0.0",
|
|
42
|
-
"@pnpm/
|
|
40
|
+
"@pnpm/read-projects-context": "1000.0.2",
|
|
41
|
+
"@pnpm/constants": "1001.0.0",
|
|
42
|
+
"@pnpm/resolver-base": "1000.1.0",
|
|
43
43
|
"@pnpm/types": "1000.0.0"
|
|
44
44
|
},
|
|
45
45
|
"funding": "https://opencollective.com/pnpm",
|