@pnpm/get-context 5.1.4 → 5.2.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/index.js +17 -17
- package/lib/index.js.map +1 -1
- package/lib/readLockfiles.js +9 -9
- package/lib/readLockfiles.js.map +1 -1
- package/package.json +51 -50
- package/CHANGELOG.md +0 -399
package/lib/index.js
CHANGED
|
@@ -24,8 +24,8 @@ const readLockfiles_1 = __importDefault(require("./readLockfiles"));
|
|
|
24
24
|
async function getContext(projects, opts) {
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
26
|
const modulesDir = (_a = opts.modulesDir) !== null && _a !== void 0 ? _a : 'node_modules';
|
|
27
|
-
let importersContext = await read_projects_context_1.default(projects, { lockfileDir: opts.lockfileDir, modulesDir });
|
|
28
|
-
const virtualStoreDir = path_absolute_1.default((_b = opts.virtualStoreDir) !== null && _b !== void 0 ? _b : path_1.default.join(modulesDir, '.pnpm'), opts.lockfileDir);
|
|
27
|
+
let importersContext = await (0, read_projects_context_1.default)(projects, { lockfileDir: opts.lockfileDir, modulesDir });
|
|
28
|
+
const virtualStoreDir = (0, path_absolute_1.default)((_b = opts.virtualStoreDir) !== null && _b !== void 0 ? _b : path_1.default.join(modulesDir, '.pnpm'), opts.lockfileDir);
|
|
29
29
|
if (importersContext.modules != null) {
|
|
30
30
|
const { purged } = await validateModules(importersContext.modules, importersContext.projects, {
|
|
31
31
|
currentHoistPattern: importersContext.currentHoistPattern,
|
|
@@ -43,7 +43,7 @@ async function getContext(projects, opts) {
|
|
|
43
43
|
publicHoistPattern: opts.publicHoistPattern,
|
|
44
44
|
});
|
|
45
45
|
if (purged) {
|
|
46
|
-
importersContext = await read_projects_context_1.default(projects, {
|
|
46
|
+
importersContext = await (0, read_projects_context_1.default)(projects, {
|
|
47
47
|
lockfileDir: opts.lockfileDir,
|
|
48
48
|
modulesDir,
|
|
49
49
|
});
|
|
@@ -59,7 +59,7 @@ async function getContext(projects, opts) {
|
|
|
59
59
|
if (((_c = opts.hooks) === null || _c === void 0 ? void 0 : _c.readPackage) != null) {
|
|
60
60
|
for (const project of importersContext.projects) {
|
|
61
61
|
project.originalManifest = project.manifest;
|
|
62
|
-
project.manifest = opts.hooks.readPackage(clone_1.default(project.manifest), project.rootDir);
|
|
62
|
+
project.manifest = await opts.hooks.readPackage((0, clone_1.default)(project.manifest), project.rootDir);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
const extraBinPaths = [
|
|
@@ -88,7 +88,7 @@ async function getContext(projects, opts) {
|
|
|
88
88
|
skipped: importersContext.skipped,
|
|
89
89
|
storeDir: opts.storeDir,
|
|
90
90
|
virtualStoreDir,
|
|
91
|
-
...await readLockfiles_1.default({
|
|
91
|
+
...await (0, readLockfiles_1.default)({
|
|
92
92
|
force: opts.force,
|
|
93
93
|
forceSharedLockfile: opts.forceSharedLockfile,
|
|
94
94
|
frozenLockfile: opts.frozenLockfile === true,
|
|
@@ -111,7 +111,7 @@ async function validateModules(modules, projects, opts) {
|
|
|
111
111
|
const rootProject = projects.find(({ id }) => id === '.');
|
|
112
112
|
if (opts.forcePublicHoistPattern &&
|
|
113
113
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
114
|
-
!equals_1.default(modules.publicHoistPattern, opts.publicHoistPattern || undefined)) {
|
|
114
|
+
!(0, equals_1.default)(modules.publicHoistPattern, opts.publicHoistPattern || undefined)) {
|
|
115
115
|
if (opts.forceNewModules && (rootProject != null)) {
|
|
116
116
|
await purgeModulesDirsOfImporter(opts.virtualStoreDir, rootProject);
|
|
117
117
|
return { purged: true };
|
|
@@ -123,12 +123,12 @@ async function validateModules(modules, projects, opts) {
|
|
|
123
123
|
if (opts.forceHoistPattern && (rootProject != null)) {
|
|
124
124
|
try {
|
|
125
125
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
126
|
-
if (!equals_1.default(opts.currentHoistPattern, opts.hoistPattern || undefined)) {
|
|
126
|
+
if (!(0, equals_1.default)(opts.currentHoistPattern, opts.hoistPattern || undefined)) {
|
|
127
127
|
throw new error_1.default('HOIST_PATTERN_DIFF', 'This modules directory was created using a different hoist-pattern value.' +
|
|
128
128
|
' Run "pnpm install" to recreate the modules directory.');
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
catch (err) {
|
|
131
|
+
catch (err) { // eslint-disable-line
|
|
132
132
|
if (!opts.forceNewModules)
|
|
133
133
|
throw err;
|
|
134
134
|
await purgeModulesDirsOfImporter(opts.virtualStoreDir, rootProject);
|
|
@@ -137,7 +137,7 @@ async function validateModules(modules, projects, opts) {
|
|
|
137
137
|
}
|
|
138
138
|
await Promise.all(projects.map(async (project) => {
|
|
139
139
|
try {
|
|
140
|
-
checkCompatibility_1.default(modules, {
|
|
140
|
+
(0, checkCompatibility_1.default)(modules, {
|
|
141
141
|
modulesDir: project.modulesDir,
|
|
142
142
|
storeDir: opts.storeDir,
|
|
143
143
|
virtualStoreDir: opts.virtualStoreDir,
|
|
@@ -151,14 +151,14 @@ async function validateModules(modules, projects, opts) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
catch (err) {
|
|
154
|
+
catch (err) { // eslint-disable-line
|
|
155
155
|
if (!opts.forceNewModules)
|
|
156
156
|
throw err;
|
|
157
157
|
await purgeModulesDirsOfImporter(opts.virtualStoreDir, project);
|
|
158
158
|
purged = true;
|
|
159
159
|
}
|
|
160
160
|
}));
|
|
161
|
-
if ((modules.registries != null) && !equals_1.default(opts.registries, modules.registries)) {
|
|
161
|
+
if ((modules.registries != null) && !(0, equals_1.default)(opts.registries, modules.registries)) {
|
|
162
162
|
if (opts.forceNewModules) {
|
|
163
163
|
await Promise.all(projects.map(purgeModulesDirsOfImporter.bind(null, opts.virtualStoreDir)));
|
|
164
164
|
return { purged: true };
|
|
@@ -184,7 +184,7 @@ async function purgeModulesDirsOfImporter(virtualStoreDir, importer) {
|
|
|
184
184
|
// 2. in some setups, pnpm won't even have permission to remove the modules directory.
|
|
185
185
|
await removeContentsOfDir(importer.modulesDir, virtualStoreDir);
|
|
186
186
|
}
|
|
187
|
-
catch (err) {
|
|
187
|
+
catch (err) { // eslint-disable-line
|
|
188
188
|
if (err.code !== 'ENOENT')
|
|
189
189
|
throw err;
|
|
190
190
|
}
|
|
@@ -199,7 +199,7 @@ async function removeContentsOfDir(dir, virtualStoreDir) {
|
|
|
199
199
|
!dirsAreEqual(path_1.default.join(dir, item), virtualStoreDir)) {
|
|
200
200
|
continue;
|
|
201
201
|
}
|
|
202
|
-
await rimraf_1.default(path_1.default.join(dir, item));
|
|
202
|
+
await (0, rimraf_1.default)(path_1.default.join(dir, item));
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
function dirsAreEqual(dir1, dir2) {
|
|
@@ -210,7 +210,7 @@ function stringifyIncludedDeps(included) {
|
|
|
210
210
|
}
|
|
211
211
|
async function getContextForSingleImporter(manifest, opts, alreadyPurged = false) {
|
|
212
212
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
213
|
-
const { currentHoistPattern, currentPublicHoistPattern, hoistedDependencies, projects, include, modules, pendingBuilds, registries, skipped, rootModulesDir, } = await read_projects_context_1.default([
|
|
213
|
+
const { currentHoistPattern, currentPublicHoistPattern, hoistedDependencies, projects, include, modules, pendingBuilds, registries, skipped, rootModulesDir, } = await (0, read_projects_context_1.default)([
|
|
214
214
|
{
|
|
215
215
|
rootDir: opts.dir,
|
|
216
216
|
},
|
|
@@ -222,7 +222,7 @@ async function getContextForSingleImporter(manifest, opts, alreadyPurged = false
|
|
|
222
222
|
const importer = projects[0];
|
|
223
223
|
const modulesDir = importer.modulesDir;
|
|
224
224
|
const importerId = importer.id;
|
|
225
|
-
const virtualStoreDir = path_absolute_1.default((_a = opts.virtualStoreDir) !== null && _a !== void 0 ? _a : 'node_modules/.pnpm', opts.lockfileDir);
|
|
225
|
+
const virtualStoreDir = (0, path_absolute_1.default)((_a = opts.virtualStoreDir) !== null && _a !== void 0 ? _a : 'node_modules/.pnpm', opts.lockfileDir);
|
|
226
226
|
if ((modules != null) && !alreadyPurged) {
|
|
227
227
|
const { purged } = await validateModules(modules, projects, {
|
|
228
228
|
currentHoistPattern,
|
|
@@ -259,7 +259,7 @@ async function getContextForSingleImporter(manifest, opts, alreadyPurged = false
|
|
|
259
259
|
importerId,
|
|
260
260
|
include: (_d = opts.include) !== null && _d !== void 0 ? _d : include,
|
|
261
261
|
lockfileDir: opts.lockfileDir,
|
|
262
|
-
manifest: (_g = (_f = (_e = opts.hooks) === null || _e === void 0 ? void 0 : _e.readPackage) === null || _f === void 0 ? void 0 : _f.call(_e, manifest)) !== null && _g !== void 0 ? _g : manifest,
|
|
262
|
+
manifest: (_g = await ((_f = (_e = opts.hooks) === null || _e === void 0 ? void 0 : _e.readPackage) === null || _f === void 0 ? void 0 : _f.call(_e, manifest))) !== null && _g !== void 0 ? _g : manifest,
|
|
263
263
|
modulesDir,
|
|
264
264
|
modulesFile: modules,
|
|
265
265
|
pendingBuilds,
|
|
@@ -273,7 +273,7 @@ async function getContextForSingleImporter(manifest, opts, alreadyPurged = false
|
|
|
273
273
|
skipped,
|
|
274
274
|
storeDir,
|
|
275
275
|
virtualStoreDir,
|
|
276
|
-
...await readLockfiles_1.default({
|
|
276
|
+
...await (0, readLockfiles_1.default)({
|
|
277
277
|
force: opts.force,
|
|
278
278
|
forceSharedLockfile: opts.forceSharedLockfile,
|
|
279
279
|
frozenLockfile: false,
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAmC;AACnC,gDAAuB;AACvB,qDAAyE;AACzE,wDAAmC;AAEnC,0DAAiC;AAKjC,wFAA6D;AAC7D,uCAMoB;AACpB,6DAAoC;AACpC,kEAAwC;AACxC,4DAAmC;AACnC,8DAAqC;AACrC,8EAAqD;AACrD,qGAA4E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,GAAG,EAAE,CAAC;YACjD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,eAAe;SAChB,CAAC;KACH,CAAA;IACD,oCAAqB,CAAC,KAAK,CAAC;QAC1B,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE,IAAI,CAAC,GAAG;KACjB,CAAC,CAAA;IACF,4BAAa,CAAC,KAAK,CAAC;QAClB,qBAAqB,EAAE,GAAG,CAAC,qBAAqB;QAChD,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,eAAe;KAChB,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACZ,CAAC;AApID,kEAoIC"}
|
package/lib/readLockfiles.js
CHANGED
|
@@ -23,11 +23,11 @@ async function default_1(opts) {
|
|
|
23
23
|
if (!opts.frozenLockfile) {
|
|
24
24
|
fileReads.push((async () => {
|
|
25
25
|
try {
|
|
26
|
-
const { lockfile, hadConflicts } = await lockfile_file_1.readWantedLockfileAndAutofixConflicts(opts.lockfileDir, lockfileOpts);
|
|
26
|
+
const { lockfile, hadConflicts } = await (0, lockfile_file_1.readWantedLockfileAndAutofixConflicts)(opts.lockfileDir, lockfileOpts);
|
|
27
27
|
lockfileHadConflicts = hadConflicts;
|
|
28
28
|
return lockfile;
|
|
29
29
|
}
|
|
30
|
-
catch (err) {
|
|
30
|
+
catch (err) { // eslint-disable-line
|
|
31
31
|
logger_1.default.warn({
|
|
32
32
|
message: `Ignoring broken lockfile at ${opts.lockfileDir}: ${err.message}`,
|
|
33
33
|
prefix: opts.lockfileDir,
|
|
@@ -37,11 +37,11 @@ async function default_1(opts) {
|
|
|
37
37
|
})());
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
fileReads.push(lockfile_file_1.readWantedLockfile(opts.lockfileDir, lockfileOpts));
|
|
40
|
+
fileReads.push((0, lockfile_file_1.readWantedLockfile)(opts.lockfileDir, lockfileOpts));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
|
-
if (await lockfile_file_1.existsWantedLockfile(opts.lockfileDir)) {
|
|
44
|
+
if (await (0, lockfile_file_1.existsWantedLockfile)(opts.lockfileDir)) {
|
|
45
45
|
logger_1.default.warn({
|
|
46
46
|
message: `A ${constants_1.WANTED_LOCKFILE} file exists. The current configuration prohibits to read or write a lockfile`,
|
|
47
47
|
prefix: opts.lockfileDir,
|
|
@@ -51,9 +51,9 @@ async function default_1(opts) {
|
|
|
51
51
|
}
|
|
52
52
|
fileReads.push((async () => {
|
|
53
53
|
try {
|
|
54
|
-
return await lockfile_file_1.readCurrentLockfile(opts.virtualStoreDir, lockfileOpts);
|
|
54
|
+
return await (0, lockfile_file_1.readCurrentLockfile)(opts.virtualStoreDir, lockfileOpts);
|
|
55
55
|
}
|
|
56
|
-
catch (err) {
|
|
56
|
+
catch (err) { // eslint-disable-line
|
|
57
57
|
logger_1.default.warn({
|
|
58
58
|
message: `Ignoring broken lockfile at ${opts.virtualStoreDir}: ${err.message}`,
|
|
59
59
|
prefix: opts.lockfileDir,
|
|
@@ -65,7 +65,7 @@ async function default_1(opts) {
|
|
|
65
65
|
const files = await Promise.all(fileReads);
|
|
66
66
|
const sopts = { lockfileVersion: constants_1.LOCKFILE_VERSION };
|
|
67
67
|
const importerIds = opts.projects.map((importer) => importer.id);
|
|
68
|
-
const currentLockfile = (_a = files[1]) !== null && _a !== void 0 ? _a : lockfile_file_1.createLockfileObject(importerIds, sopts);
|
|
68
|
+
const currentLockfile = (_a = files[1]) !== null && _a !== void 0 ? _a : (0, lockfile_file_1.createLockfileObject)(importerIds, sopts);
|
|
69
69
|
for (const importerId of importerIds) {
|
|
70
70
|
if (!currentLockfile.importers[importerId]) {
|
|
71
71
|
currentLockfile.importers[importerId] = {
|
|
@@ -73,7 +73,7 @@ async function default_1(opts) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
const wantedLockfile = (_c = (_b = files[0]) !== null && _b !== void 0 ? _b : (currentLockfile && clone_1.default(currentLockfile))) !== null && _c !== void 0 ? _c : lockfile_file_1.createLockfileObject(importerIds, sopts);
|
|
76
|
+
const wantedLockfile = (_c = (_b = files[0]) !== null && _b !== void 0 ? _b : (currentLockfile && (0, clone_1.default)(currentLockfile))) !== null && _c !== void 0 ? _c : (0, lockfile_file_1.createLockfileObject)(importerIds, sopts);
|
|
77
77
|
for (const importerId of importerIds) {
|
|
78
78
|
if (!wantedLockfile.importers[importerId]) {
|
|
79
79
|
wantedLockfile.importers[importerId] = {
|
|
@@ -83,7 +83,7 @@ async function default_1(opts) {
|
|
|
83
83
|
}
|
|
84
84
|
return {
|
|
85
85
|
currentLockfile,
|
|
86
|
-
currentLockfileIsUpToDate: equals_1.default(currentLockfile, wantedLockfile),
|
|
86
|
+
currentLockfileIsUpToDate: (0, equals_1.default)(currentLockfile, wantedLockfile),
|
|
87
87
|
existsCurrentLockfile: files[1] != null,
|
|
88
88
|
existsWantedLockfile: files[0] != null,
|
|
89
89
|
wantedLockfile,
|
package/lib/readLockfiles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readLockfiles.js","sourceRoot":"","sources":["../src/readLockfiles.ts"],"names":[],"mappings":";;;;;AAAA,+CAGwB;AACxB,uDAO4B;AAC5B,0DAAiC;AACjC,kDAAwB;AACxB,4DAAmC;AACnC,8DAAqC;AAStB,KAAK,oBAClB,IAYC;;IASD,wCAAwC;IACxC,gDAAgD;IAChD,MAAM,YAAY,GAAG;QACnB,kBAAkB,EAAE,IAAI,CAAC,KAAK,IAAI,eAAI;QACtC,aAAa,EAAE,4BAAgB;KAChC,CAAA;IACD,MAAM,SAAS,GAAG,EAAiD,CAAA;IACnE,IAAI,oBAAoB,GAAY,KAAK,CAAA;IACzC,IAAI,IAAI,CAAC,WAAW,EAAE;QACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACxB,SAAS,CAAC,IAAI,CACZ,CAAC,KAAK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42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
2
|
+
"name": "@pnpm/get-context",
|
|
3
|
+
"version": "5.2.1",
|
|
4
|
+
"description": "Gets context information about a project",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib",
|
|
9
|
+
"!*.map"
|
|
10
|
+
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=12.17"
|
|
13
|
+
},
|
|
14
|
+
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/get-context",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"pnpm6",
|
|
17
|
+
"pnpm",
|
|
18
|
+
"scripts"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/pnpm/pnpm/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/get-context#readme",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@pnpm/logger": "^4.0.0",
|
|
27
|
+
"@types/is-ci": "^3.0.0",
|
|
28
|
+
"@types/ramda": "0.27.39"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@pnpm/logger": "^4.0.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@pnpm/constants": "5.0.0",
|
|
35
|
+
"@pnpm/core-loggers": "6.0.6",
|
|
36
|
+
"@pnpm/error": "2.0.0",
|
|
37
|
+
"@pnpm/lockfile-file": "4.2.1",
|
|
38
|
+
"@pnpm/modules-yaml": "9.0.6",
|
|
39
|
+
"@pnpm/read-projects-context": "5.0.9",
|
|
40
|
+
"@pnpm/types": "7.6.0",
|
|
41
|
+
"@zkochan/rimraf": "^2.1.1",
|
|
42
|
+
"is-ci": "^3.0.0",
|
|
43
|
+
"path-absolute": "^1.0.1",
|
|
44
|
+
"ramda": "^0.27.1"
|
|
45
|
+
},
|
|
46
|
+
"funding": "https://opencollective.com/pnpm",
|
|
47
|
+
"scripts": {
|
|
48
|
+
"lint": "eslint src/**/*.ts",
|
|
49
|
+
"test": "pnpm run compile",
|
|
50
|
+
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
|
|
51
|
+
}
|
|
52
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,399 +0,0 @@
|
|
|
1
|
-
# @pnpm/get-context
|
|
2
|
-
|
|
3
|
-
## 5.1.4
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [8e76690f4]
|
|
8
|
-
- Updated dependencies [8e76690f4]
|
|
9
|
-
- @pnpm/lockfile-file@4.1.0
|
|
10
|
-
- @pnpm/types@7.3.0
|
|
11
|
-
- @pnpm/read-projects-context@5.0.5
|
|
12
|
-
- @pnpm/core-loggers@6.0.3
|
|
13
|
-
- @pnpm/modules-yaml@9.0.3
|
|
14
|
-
|
|
15
|
-
## 5.1.3
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- Updated dependencies [2dc5a7a4c]
|
|
20
|
-
- @pnpm/lockfile-file@4.0.4
|
|
21
|
-
- @pnpm/read-projects-context@5.0.4
|
|
22
|
-
|
|
23
|
-
## 5.1.2
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- Updated dependencies [724c5abd8]
|
|
28
|
-
- @pnpm/types@7.2.0
|
|
29
|
-
- @pnpm/core-loggers@6.0.2
|
|
30
|
-
- @pnpm/lockfile-file@4.0.3
|
|
31
|
-
- @pnpm/modules-yaml@9.0.2
|
|
32
|
-
- @pnpm/read-projects-context@5.0.3
|
|
33
|
-
|
|
34
|
-
## 5.1.1
|
|
35
|
-
|
|
36
|
-
### Patch Changes
|
|
37
|
-
|
|
38
|
-
- a1a03d145: Import only the required functions from ramda.
|
|
39
|
-
- Updated dependencies [a1a03d145]
|
|
40
|
-
- @pnpm/lockfile-file@4.0.2
|
|
41
|
-
- @pnpm/read-projects-context@5.0.2
|
|
42
|
-
|
|
43
|
-
## 5.1.0
|
|
44
|
-
|
|
45
|
-
### Minor Changes
|
|
46
|
-
|
|
47
|
-
- 97c64bae4: Pass in the location of the project to the `readPackage` hook.
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- Updated dependencies [97c64bae4]
|
|
52
|
-
- @pnpm/types@7.1.0
|
|
53
|
-
- @pnpm/core-loggers@6.0.1
|
|
54
|
-
- @pnpm/lockfile-file@4.0.1
|
|
55
|
-
- @pnpm/modules-yaml@9.0.1
|
|
56
|
-
- @pnpm/read-projects-context@5.0.1
|
|
57
|
-
|
|
58
|
-
## 5.0.0
|
|
59
|
-
|
|
60
|
-
### Major Changes
|
|
61
|
-
|
|
62
|
-
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- 7adc6e875: Update dependencies.
|
|
67
|
-
- Updated dependencies [6871d74b2]
|
|
68
|
-
- Updated dependencies [97b986fbc]
|
|
69
|
-
- Updated dependencies [90487a3a8]
|
|
70
|
-
- Updated dependencies [155e70597]
|
|
71
|
-
- Updated dependencies [9c2a878c3]
|
|
72
|
-
- Updated dependencies [8b66f26dc]
|
|
73
|
-
- Updated dependencies [f2bb5cbeb]
|
|
74
|
-
- Updated dependencies [f7750baed]
|
|
75
|
-
- Updated dependencies [78470a32d]
|
|
76
|
-
- Updated dependencies [9c2a878c3]
|
|
77
|
-
- @pnpm/constants@5.0.0
|
|
78
|
-
- @pnpm/core-loggers@6.0.0
|
|
79
|
-
- @pnpm/error@2.0.0
|
|
80
|
-
- @pnpm/lockfile-file@4.0.0
|
|
81
|
-
- @pnpm/modules-yaml@9.0.0
|
|
82
|
-
- @pnpm/read-projects-context@5.0.0
|
|
83
|
-
- @pnpm/types@7.0.0
|
|
84
|
-
|
|
85
|
-
## 4.0.0
|
|
86
|
-
|
|
87
|
-
### Major Changes
|
|
88
|
-
|
|
89
|
-
- 51e1456dd: `opts.autofixMergeConflicts` is replaced with `opts.frozenLockfile`.
|
|
90
|
-
|
|
91
|
-
When `opts.frozenLockfile` is `false`, broken lockfiles are ignored and merge conflicts are automatically resolved.
|
|
92
|
-
|
|
93
|
-
### Patch Changes
|
|
94
|
-
|
|
95
|
-
- Updated dependencies [51e1456dd]
|
|
96
|
-
- @pnpm/lockfile-file@3.2.1
|
|
97
|
-
- @pnpm/read-projects-context@4.0.16
|
|
98
|
-
|
|
99
|
-
## 3.3.6
|
|
100
|
-
|
|
101
|
-
### Patch Changes
|
|
102
|
-
|
|
103
|
-
- 27a40321c: Update dependencies.
|
|
104
|
-
|
|
105
|
-
## 3.3.5
|
|
106
|
-
|
|
107
|
-
### Patch Changes
|
|
108
|
-
|
|
109
|
-
- Updated dependencies [9ad8c27bf]
|
|
110
|
-
- Updated dependencies [9ad8c27bf]
|
|
111
|
-
- @pnpm/lockfile-file@3.2.0
|
|
112
|
-
- @pnpm/types@6.4.0
|
|
113
|
-
- @pnpm/read-projects-context@4.0.15
|
|
114
|
-
- @pnpm/core-loggers@5.0.3
|
|
115
|
-
- @pnpm/modules-yaml@8.0.6
|
|
116
|
-
|
|
117
|
-
## 3.3.4
|
|
118
|
-
|
|
119
|
-
### Patch Changes
|
|
120
|
-
|
|
121
|
-
- Updated dependencies [af897c324]
|
|
122
|
-
- @pnpm/lockfile-file@3.1.4
|
|
123
|
-
- @pnpm/read-projects-context@4.0.14
|
|
124
|
-
|
|
125
|
-
## 3.3.3
|
|
126
|
-
|
|
127
|
-
### Patch Changes
|
|
128
|
-
|
|
129
|
-
- Updated dependencies [1e4a3a17a]
|
|
130
|
-
- @pnpm/lockfile-file@3.1.3
|
|
131
|
-
- @pnpm/read-projects-context@4.0.13
|
|
132
|
-
|
|
133
|
-
## 3.3.2
|
|
134
|
-
|
|
135
|
-
### Patch Changes
|
|
136
|
-
|
|
137
|
-
- Updated dependencies [fba715512]
|
|
138
|
-
- @pnpm/lockfile-file@3.1.2
|
|
139
|
-
- @pnpm/read-projects-context@4.0.12
|
|
140
|
-
|
|
141
|
-
## 3.3.1
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- Updated dependencies [0c5f1bcc9]
|
|
146
|
-
- @pnpm/error@1.4.0
|
|
147
|
-
- @pnpm/lockfile-file@3.1.1
|
|
148
|
-
- @pnpm/read-projects-context@4.0.11
|
|
149
|
-
|
|
150
|
-
## 3.3.0
|
|
151
|
-
|
|
152
|
-
### Minor Changes
|
|
153
|
-
|
|
154
|
-
- 3776b5a52: A new option added to the context: lockfileHadConflicts.
|
|
155
|
-
|
|
156
|
-
### Patch Changes
|
|
157
|
-
|
|
158
|
-
- Updated dependencies [3776b5a52]
|
|
159
|
-
- @pnpm/lockfile-file@3.1.0
|
|
160
|
-
- @pnpm/read-projects-context@4.0.10
|
|
161
|
-
|
|
162
|
-
## 3.2.11
|
|
163
|
-
|
|
164
|
-
### Patch Changes
|
|
165
|
-
|
|
166
|
-
- Updated dependencies [dbcc6c96f]
|
|
167
|
-
- Updated dependencies [09492b7b4]
|
|
168
|
-
- @pnpm/lockfile-file@3.0.18
|
|
169
|
-
- @pnpm/modules-yaml@8.0.5
|
|
170
|
-
- @pnpm/read-projects-context@4.0.9
|
|
171
|
-
|
|
172
|
-
## 3.2.10
|
|
173
|
-
|
|
174
|
-
### Patch Changes
|
|
175
|
-
|
|
176
|
-
- Updated dependencies [aa6bc4f95]
|
|
177
|
-
- @pnpm/lockfile-file@3.0.17
|
|
178
|
-
- @pnpm/read-projects-context@4.0.8
|
|
179
|
-
|
|
180
|
-
## 3.2.9
|
|
181
|
-
|
|
182
|
-
### Patch Changes
|
|
183
|
-
|
|
184
|
-
- Updated dependencies [b5d694e7f]
|
|
185
|
-
- @pnpm/types@6.3.1
|
|
186
|
-
- @pnpm/lockfile-file@3.0.16
|
|
187
|
-
- @pnpm/core-loggers@5.0.2
|
|
188
|
-
- @pnpm/modules-yaml@8.0.4
|
|
189
|
-
- @pnpm/read-projects-context@4.0.7
|
|
190
|
-
|
|
191
|
-
## 3.2.8
|
|
192
|
-
|
|
193
|
-
### Patch Changes
|
|
194
|
-
|
|
195
|
-
- Updated dependencies [d54043ee4]
|
|
196
|
-
- Updated dependencies [fcdad632f]
|
|
197
|
-
- @pnpm/types@6.3.0
|
|
198
|
-
- @pnpm/constants@4.1.0
|
|
199
|
-
- @pnpm/lockfile-file@3.0.15
|
|
200
|
-
- @pnpm/core-loggers@5.0.1
|
|
201
|
-
- @pnpm/modules-yaml@8.0.3
|
|
202
|
-
- @pnpm/read-projects-context@4.0.6
|
|
203
|
-
|
|
204
|
-
## 3.2.7
|
|
205
|
-
|
|
206
|
-
### Patch Changes
|
|
207
|
-
|
|
208
|
-
- ac3042858: When purging an incompatible modules directory, don't remove `.dot_files` that don't belong to pnpm. (<https://github.com/pnpm/pnpm/issues/2506>)
|
|
209
|
-
|
|
210
|
-
## 3.2.6
|
|
211
|
-
|
|
212
|
-
### Patch Changes
|
|
213
|
-
|
|
214
|
-
- Updated dependencies [86cd72de3]
|
|
215
|
-
- @pnpm/core-loggers@5.0.0
|
|
216
|
-
|
|
217
|
-
## 3.2.5
|
|
218
|
-
|
|
219
|
-
### Patch Changes
|
|
220
|
-
|
|
221
|
-
- Updated dependencies [75a36deba]
|
|
222
|
-
- @pnpm/error@1.3.1
|
|
223
|
-
- @pnpm/lockfile-file@3.0.14
|
|
224
|
-
- @pnpm/read-projects-context@4.0.5
|
|
225
|
-
|
|
226
|
-
## 3.2.4
|
|
227
|
-
|
|
228
|
-
### Patch Changes
|
|
229
|
-
|
|
230
|
-
- 972864e0d: publicHoistPattern=undefined should be considered to be the same as publicHoistPattern='' (empty string).
|
|
231
|
-
- Updated dependencies [9550b0505]
|
|
232
|
-
- @pnpm/lockfile-file@3.0.13
|
|
233
|
-
- @pnpm/read-projects-context@4.0.4
|
|
234
|
-
|
|
235
|
-
## 3.2.3
|
|
236
|
-
|
|
237
|
-
### Patch Changes
|
|
238
|
-
|
|
239
|
-
- 51086e6e4: Fix text in registries mismatch error message.
|
|
240
|
-
- Updated dependencies [6d480dd7a]
|
|
241
|
-
- @pnpm/error@1.3.0
|
|
242
|
-
- @pnpm/lockfile-file@3.0.12
|
|
243
|
-
- @pnpm/read-projects-context@4.0.3
|
|
244
|
-
|
|
245
|
-
## 3.2.2
|
|
246
|
-
|
|
247
|
-
### Patch Changes
|
|
248
|
-
|
|
249
|
-
- a2ef8084f: Use the same versions of dependencies across the pnpm monorepo.
|
|
250
|
-
- Updated dependencies [a2ef8084f]
|
|
251
|
-
- @pnpm/modules-yaml@8.0.2
|
|
252
|
-
- @pnpm/read-projects-context@4.0.2
|
|
253
|
-
|
|
254
|
-
## 3.2.1
|
|
255
|
-
|
|
256
|
-
### Patch Changes
|
|
257
|
-
|
|
258
|
-
- 25b425ca2: When purging an incompatible modules directory, don't remove the actual directory, just the contents of it.
|
|
259
|
-
|
|
260
|
-
## 3.2.0
|
|
261
|
-
|
|
262
|
-
### Minor Changes
|
|
263
|
-
|
|
264
|
-
- a01626668: Add `originalManifest` that stores the unmodified.
|
|
265
|
-
|
|
266
|
-
## 3.1.0
|
|
267
|
-
|
|
268
|
-
### Minor Changes
|
|
269
|
-
|
|
270
|
-
- 9a908bc07: Use `contextLogger` to log `virtualStoreDir`, `storeDir`, and `currentLockfileExists`.
|
|
271
|
-
|
|
272
|
-
### Patch Changes
|
|
273
|
-
|
|
274
|
-
- Updated dependencies [9a908bc07]
|
|
275
|
-
- Updated dependencies [9a908bc07]
|
|
276
|
-
- @pnpm/core-loggers@4.2.0
|
|
277
|
-
|
|
278
|
-
## 3.0.1
|
|
279
|
-
|
|
280
|
-
### Patch Changes
|
|
281
|
-
|
|
282
|
-
- Updated dependencies [db17f6f7b]
|
|
283
|
-
- @pnpm/types@6.2.0
|
|
284
|
-
- @pnpm/core-loggers@4.1.2
|
|
285
|
-
- @pnpm/lockfile-file@3.0.11
|
|
286
|
-
- @pnpm/modules-yaml@8.0.1
|
|
287
|
-
- @pnpm/read-projects-context@4.0.1
|
|
288
|
-
|
|
289
|
-
## 3.0.0
|
|
290
|
-
|
|
291
|
-
### Major Changes
|
|
292
|
-
|
|
293
|
-
- 71a8c8ce3: `hoistedAliases` replaced with `hoistedDependencies`.
|
|
294
|
-
|
|
295
|
-
`shamefullyHoist` replaced with `publicHoistPattern`.
|
|
296
|
-
|
|
297
|
-
`forceShamefullyHoist` replaced with `forcePublicHoistPattern`.
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
- Updated dependencies [71a8c8ce3]
|
|
302
|
-
- Updated dependencies [71a8c8ce3]
|
|
303
|
-
- Updated dependencies [71a8c8ce3]
|
|
304
|
-
- @pnpm/read-projects-context@4.0.0
|
|
305
|
-
- @pnpm/types@6.1.0
|
|
306
|
-
- @pnpm/modules-yaml@8.0.0
|
|
307
|
-
- @pnpm/core-loggers@4.1.1
|
|
308
|
-
- @pnpm/lockfile-file@3.0.10
|
|
309
|
-
|
|
310
|
-
## 2.1.2
|
|
311
|
-
|
|
312
|
-
### Patch Changes
|
|
313
|
-
|
|
314
|
-
- Updated dependencies [2ebb7af33]
|
|
315
|
-
- @pnpm/core-loggers@4.1.0
|
|
316
|
-
|
|
317
|
-
## 2.1.1
|
|
318
|
-
|
|
319
|
-
### Patch Changes
|
|
320
|
-
|
|
321
|
-
- 58c02009f: When checking compatibility of the existing modules directory, start with the layout version. Otherwise, it may happen that some of the fields were renamed and other checks will fail.
|
|
322
|
-
|
|
323
|
-
## 2.1.0
|
|
324
|
-
|
|
325
|
-
### Minor Changes
|
|
326
|
-
|
|
327
|
-
- 327bfbf02: Add `currentLockfileIsUpToDate` to the context.
|
|
328
|
-
|
|
329
|
-
## 2.0.0
|
|
330
|
-
|
|
331
|
-
### Major Changes
|
|
332
|
-
|
|
333
|
-
- 3f73eaf0c: Rename `store` to `storeDir` in `node_modules/.modules.yaml`.
|
|
334
|
-
- 802d145fc: Remove `independent-leaves` support.
|
|
335
|
-
- e3990787a: Rename NodeModules to Modules in option names.
|
|
336
|
-
|
|
337
|
-
### Patch Changes
|
|
338
|
-
|
|
339
|
-
- Updated dependencies [b5f66c0f2]
|
|
340
|
-
- Updated dependencies [ca9f50844]
|
|
341
|
-
- Updated dependencies [3f73eaf0c]
|
|
342
|
-
- Updated dependencies [da091c711]
|
|
343
|
-
- Updated dependencies [802d145fc]
|
|
344
|
-
- Updated dependencies [4f5801b1c]
|
|
345
|
-
- @pnpm/constants@4.0.0
|
|
346
|
-
- @pnpm/modules-yaml@7.0.0
|
|
347
|
-
- @pnpm/types@6.0.0
|
|
348
|
-
- @pnpm/read-projects-context@3.0.0
|
|
349
|
-
- @pnpm/core-loggers@4.0.2
|
|
350
|
-
- @pnpm/error@1.2.1
|
|
351
|
-
- @pnpm/lockfile-file@3.0.9
|
|
352
|
-
|
|
353
|
-
## 2.0.0-alpha.2
|
|
354
|
-
|
|
355
|
-
### Patch Changes
|
|
356
|
-
|
|
357
|
-
- Updated dependencies [ca9f50844]
|
|
358
|
-
- @pnpm/constants@4.0.0-alpha.1
|
|
359
|
-
- @pnpm/lockfile-file@3.0.9-alpha.2
|
|
360
|
-
- @pnpm/read-projects-context@2.0.2-alpha.2
|
|
361
|
-
|
|
362
|
-
## 2.0.0-alpha.1
|
|
363
|
-
|
|
364
|
-
### Major Changes
|
|
365
|
-
|
|
366
|
-
- 3f73eaf0: Rename `store` to `storeDir` in `node_modules/.modules.yaml`.
|
|
367
|
-
- e3990787: Rename NodeModules to Modules in option names.
|
|
368
|
-
|
|
369
|
-
### Patch Changes
|
|
370
|
-
|
|
371
|
-
- Updated dependencies [3f73eaf0]
|
|
372
|
-
- Updated dependencies [da091c71]
|
|
373
|
-
- @pnpm/modules-yaml@7.0.0-alpha.0
|
|
374
|
-
- @pnpm/types@6.0.0-alpha.0
|
|
375
|
-
- @pnpm/read-projects-context@2.0.2-alpha.1
|
|
376
|
-
- @pnpm/core-loggers@4.0.2-alpha.0
|
|
377
|
-
- @pnpm/lockfile-file@3.0.9-alpha.1
|
|
378
|
-
|
|
379
|
-
## 1.2.2-alpha.0
|
|
380
|
-
|
|
381
|
-
### Patch Changes
|
|
382
|
-
|
|
383
|
-
- Updated dependencies [b5f66c0f2]
|
|
384
|
-
- @pnpm/constants@4.0.0-alpha.0
|
|
385
|
-
- @pnpm/lockfile-file@3.0.9-alpha.0
|
|
386
|
-
- @pnpm/read-projects-context@2.0.2-alpha.0
|
|
387
|
-
|
|
388
|
-
## 1.2.1
|
|
389
|
-
|
|
390
|
-
### Patch Changes
|
|
391
|
-
|
|
392
|
-
- 907c63a48: Update dependencies.
|
|
393
|
-
- 907c63a48: Use `fs.mkdir` instead of `make-dir`.
|
|
394
|
-
- Updated dependencies [907c63a48]
|
|
395
|
-
- Updated dependencies [907c63a48]
|
|
396
|
-
- Updated dependencies [907c63a48]
|
|
397
|
-
- @pnpm/lockfile-file@3.0.8
|
|
398
|
-
- @pnpm/modules-yaml@6.0.2
|
|
399
|
-
- @pnpm/read-projects-context@2.0.1
|