pxnpm 4.1.2 → 4.1.3
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/dist/pnpm.cjs +12 -12
- package/package.json +1 -1
package/dist/pnpm.cjs
CHANGED
|
@@ -13495,7 +13495,7 @@ var require_lib7 = __commonJS({
|
|
|
13495
13495
|
"use strict";
|
|
13496
13496
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13497
13497
|
exports2.WORKSPACE_MANIFEST_FILENAME = exports2.LAYOUT_VERSION = exports2.ENGINE_NAME = exports2.LOCKFILE_VERSION_V6 = exports2.LOCKFILE_VERSION = exports2.WANTED_LOCKFILE = void 0;
|
|
13498
|
-
exports2.WANTED_LOCKFILE = "
|
|
13498
|
+
exports2.WANTED_LOCKFILE = "pxnpm-lock.yaml";
|
|
13499
13499
|
exports2.LOCKFILE_VERSION = 5.4;
|
|
13500
13500
|
exports2.LOCKFILE_VERSION_V6 = "6.0";
|
|
13501
13501
|
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
@@ -77691,7 +77691,7 @@ var require_lib45 = __commonJS({
|
|
|
77691
77691
|
"use strict";
|
|
77692
77692
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77693
77693
|
exports2.WORKSPACE_MANIFEST_FILENAME = exports2.LAYOUT_VERSION = exports2.ENGINE_NAME = exports2.LOCKFILE_VERSION_V6 = exports2.LOCKFILE_VERSION = exports2.WANTED_LOCKFILE = void 0;
|
|
77694
|
-
exports2.WANTED_LOCKFILE = "
|
|
77694
|
+
exports2.WANTED_LOCKFILE = "pxnpm-lock.yaml";
|
|
77695
77695
|
exports2.LOCKFILE_VERSION = 5.4;
|
|
77696
77696
|
exports2.LOCKFILE_VERSION_V6 = "6.0";
|
|
77697
77697
|
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
@@ -104151,7 +104151,7 @@ var require_lib58 = __commonJS({
|
|
|
104151
104151
|
"use strict";
|
|
104152
104152
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
104153
104153
|
exports2.WORKSPACE_MANIFEST_FILENAME = exports2.LAYOUT_VERSION = exports2.ENGINE_NAME = exports2.LOCKFILE_VERSION_V6 = exports2.LOCKFILE_VERSION = exports2.WANTED_LOCKFILE = void 0;
|
|
104154
|
-
exports2.WANTED_LOCKFILE = "
|
|
104154
|
+
exports2.WANTED_LOCKFILE = "pxnpm-lock.yaml";
|
|
104155
104155
|
exports2.LOCKFILE_VERSION = 5.4;
|
|
104156
104156
|
exports2.LOCKFILE_VERSION_V6 = "6.0";
|
|
104157
104157
|
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
@@ -108272,7 +108272,7 @@ var require_lib65 = __commonJS({
|
|
|
108272
108272
|
"*.orig",
|
|
108273
108273
|
"/package-lock.json",
|
|
108274
108274
|
"/yarn.lock",
|
|
108275
|
-
"/
|
|
108275
|
+
"/pxnpm-lock.yaml",
|
|
108276
108276
|
"/archived-packages/**"
|
|
108277
108277
|
];
|
|
108278
108278
|
var nameIsBadForWindows = (file) => /\*/.test(file);
|
|
@@ -109284,7 +109284,7 @@ var require_preferred_pm = __commonJS({
|
|
|
109284
109284
|
version: "*"
|
|
109285
109285
|
};
|
|
109286
109286
|
}
|
|
109287
|
-
if (await pathExists(path2.join(pkgPath, "
|
|
109287
|
+
if (await pathExists(path2.join(pkgPath, "pxnpm-lock.yaml"))) {
|
|
109288
109288
|
return {
|
|
109289
109289
|
name: "pnpm",
|
|
109290
109290
|
version: ">=3"
|
|
@@ -109302,7 +109302,7 @@ var require_preferred_pm = __commonJS({
|
|
|
109302
109302
|
version: "*"
|
|
109303
109303
|
};
|
|
109304
109304
|
}
|
|
109305
|
-
if (await findUp("
|
|
109305
|
+
if (await findUp("pxnpm-lock.yaml", { cwd: pkgPath })) {
|
|
109306
109306
|
return {
|
|
109307
109307
|
name: "pnpm",
|
|
109308
109308
|
version: ">=3"
|
|
@@ -118421,7 +118421,7 @@ var require_gitBranchLockfile = __commonJS({
|
|
|
118421
118421
|
var path_1 = __importDefault3(require("path"));
|
|
118422
118422
|
async function getGitBranchLockfileNames(lockfileDir) {
|
|
118423
118423
|
const files = await fs_1.promises.readdir(lockfileDir);
|
|
118424
|
-
const gitBranchLockfileNames = files.filter((file) => file.match(/^
|
|
118424
|
+
const gitBranchLockfileNames = files.filter((file) => file.match(/^pxnpm-lock.(?:.*).yaml$/));
|
|
118425
118425
|
return gitBranchLockfileNames;
|
|
118426
118426
|
}
|
|
118427
118427
|
exports2.getGitBranchLockfileNames = getGitBranchLockfileNames;
|
|
@@ -166971,8 +166971,8 @@ exec "${argv0}" ${args2.map((arg) => `'${arg.replace(/'/g, `'"'"'`)}'`).join(` `
|
|
|
166971
166971
|
}
|
|
166972
166972
|
if (fslib_2.xfs.existsSync(fslib_2.ppath.join(location, `package-lock.json`)))
|
|
166973
166973
|
return { packageManager: PackageManager.Npm, reason: `found npm's "package-lock.json" lockfile` };
|
|
166974
|
-
if (fslib_2.xfs.existsSync(fslib_2.ppath.join(location, `
|
|
166975
|
-
return { packageManager: PackageManager.Pnpm, reason: `found pnpm's "
|
|
166974
|
+
if (fslib_2.xfs.existsSync(fslib_2.ppath.join(location, `pxnpm-lock.yaml`)))
|
|
166975
|
+
return { packageManager: PackageManager.Pnpm, reason: `found pnpm's "pxnpm-lock.yaml" lockfile` };
|
|
166976
166976
|
return null;
|
|
166977
166977
|
}
|
|
166978
166978
|
exports2.detectPackageManager = detectPackageManager;
|
|
@@ -182235,7 +182235,7 @@ var require_resolveDependencies = __commonJS({
|
|
|
182235
182235
|
const currentPkg = options.currentPkg ?? {};
|
|
182236
182236
|
const currentLockfileContainsTheDep = currentPkg.depPath ? Boolean(ctx.currentLockfile.packages?.[currentPkg.depPath]) : void 0;
|
|
182237
182237
|
const depIsLinked = Boolean(
|
|
182238
|
-
// if package is not in `node_modules/.
|
|
182238
|
+
// if package is not in `node_modules/.pxnpm-lock.yaml`
|
|
182239
182239
|
// we can safely assume that it doesn't exist in `node_modules`
|
|
182240
182240
|
currentLockfileContainsTheDep && currentPkg.depPath && currentPkg.dependencyLockfile && currentPkg.name && await (0, path_exists_1.default)(path_1.default.join(ctx.virtualStoreDir, dp.depPathToFilename(currentPkg.depPath), "node_modules", currentPkg.name, "package.json"))
|
|
182241
182241
|
);
|
|
@@ -183693,7 +183693,7 @@ var require_lib140 = __commonJS({
|
|
|
183693
183693
|
if (importer.dependencies != null) {
|
|
183694
183694
|
for (const [alias, dep] of Object.entries(importer.dependencies)) {
|
|
183695
183695
|
if (!lockfileDependencies[alias] && dep.startsWith("link:") && // If the linked dependency was removed from package.json
|
|
183696
|
-
// then it is removed from
|
|
183696
|
+
// then it is removed from pxnpm-lock.yaml as well
|
|
183697
183697
|
!(lockfileSpecs[alias] && !allDeps.has(alias))) {
|
|
183698
183698
|
lockfileDependencies[alias] = dep;
|
|
183699
183699
|
}
|
|
@@ -217620,7 +217620,7 @@ ${helpText}
|
|
|
217620
217620
|
name: "unlink"
|
|
217621
217621
|
},
|
|
217622
217622
|
{
|
|
217623
|
-
description: "Generates a
|
|
217623
|
+
description: "Generates a pxnpm-lock.yaml from an npm package-lock.json (or npm-shrinkwrap.json) file",
|
|
217624
217624
|
name: "import"
|
|
217625
217625
|
},
|
|
217626
217626
|
{
|