pxnpm 4.1.13 → 4.1.14
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 +9 -9
- package/package.json +1 -1
package/dist/pnpm.cjs
CHANGED
|
@@ -13500,7 +13500,7 @@ var require_lib7 = __commonJS({
|
|
|
13500
13500
|
exports2.LOCKFILE_VERSION_V6 = "6.0";
|
|
13501
13501
|
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
13502
13502
|
exports2.LAYOUT_VERSION = 5;
|
|
13503
|
-
exports2.WORKSPACE_MANIFEST_FILENAME = "
|
|
13503
|
+
exports2.WORKSPACE_MANIFEST_FILENAME = "pxnpm-workspace.yaml";
|
|
13504
13504
|
}
|
|
13505
13505
|
});
|
|
13506
13506
|
|
|
@@ -15077,7 +15077,7 @@ var require_util = __commonJS({
|
|
|
15077
15077
|
}
|
|
15078
15078
|
try {
|
|
15079
15079
|
const files = fs.readdirSync(name2);
|
|
15080
|
-
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("
|
|
15080
|
+
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pxnpm-workspace.yaml")) {
|
|
15081
15081
|
return name2;
|
|
15082
15082
|
}
|
|
15083
15083
|
const dirname = path2.dirname(name2);
|
|
@@ -28169,7 +28169,7 @@ var require_lib21 = __commonJS({
|
|
|
28169
28169
|
pnpmConfig.rootProjectManifestDir = pnpmConfig.lockfileDir ?? pnpmConfig.workspaceDir ?? pnpmConfig.dir;
|
|
28170
28170
|
pnpmConfig.rootProjectManifest = await (0, read_project_manifest_1.safeReadProjectManifestOnly)(pnpmConfig.rootProjectManifestDir) ?? void 0;
|
|
28171
28171
|
if (pnpmConfig.rootProjectManifest?.workspaces?.length && !pnpmConfig.workspaceDir) {
|
|
28172
|
-
warnings.push('The "workspaces" field in package.json is not supported by pnpm. Create a "
|
|
28172
|
+
warnings.push('The "workspaces" field in package.json is not supported by pnpm. Create a "pxnpm-workspace.yaml" file instead.');
|
|
28173
28173
|
}
|
|
28174
28174
|
pnpmConfig.failedToLoadBuiltInConfig = failedToLoadBuiltInConfig;
|
|
28175
28175
|
return { config: pnpmConfig, warnings };
|
|
@@ -76207,7 +76207,7 @@ var require_lib48 = __commonJS({
|
|
|
76207
76207
|
exports2.LOCKFILE_VERSION_V6 = "6.0";
|
|
76208
76208
|
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
76209
76209
|
exports2.LAYOUT_VERSION = 5;
|
|
76210
|
-
exports2.WORKSPACE_MANIFEST_FILENAME = "
|
|
76210
|
+
exports2.WORKSPACE_MANIFEST_FILENAME = "pxnpm-workspace.yaml";
|
|
76211
76211
|
}
|
|
76212
76212
|
});
|
|
76213
76213
|
|
|
@@ -102667,7 +102667,7 @@ var require_lib61 = __commonJS({
|
|
|
102667
102667
|
exports2.LOCKFILE_VERSION_V6 = "6.0";
|
|
102668
102668
|
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
102669
102669
|
exports2.LAYOUT_VERSION = 5;
|
|
102670
|
-
exports2.WORKSPACE_MANIFEST_FILENAME = "
|
|
102670
|
+
exports2.WORKSPACE_MANIFEST_FILENAME = "pxnpm-workspace.yaml";
|
|
102671
102671
|
}
|
|
102672
102672
|
});
|
|
102673
102673
|
|
|
@@ -188371,12 +188371,12 @@ var require_lib151 = __commonJS({
|
|
|
188371
188371
|
var error_1 = require_lib8();
|
|
188372
188372
|
var find_up_1 = __importDefault3(require_find_up());
|
|
188373
188373
|
var WORKSPACE_DIR_ENV_VAR = "NPM_CONFIG_WORKSPACE_DIR";
|
|
188374
|
-
var WORKSPACE_MANIFEST_FILENAME = "
|
|
188374
|
+
var WORKSPACE_MANIFEST_FILENAME = "pxnpm-workspace.yaml";
|
|
188375
188375
|
async function findWorkspaceDir(cwd) {
|
|
188376
188376
|
const workspaceManifestDirEnvVar = process.env[WORKSPACE_DIR_ENV_VAR] ?? process.env[WORKSPACE_DIR_ENV_VAR.toLowerCase()];
|
|
188377
|
-
const workspaceManifestLocation = workspaceManifestDirEnvVar ? path_1.default.join(workspaceManifestDirEnvVar, "
|
|
188377
|
+
const workspaceManifestLocation = workspaceManifestDirEnvVar ? path_1.default.join(workspaceManifestDirEnvVar, "pxnpm-workspace.yaml") : await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, "pnpm-workspace.yml"], { cwd: await getRealPath(cwd) });
|
|
188378
188378
|
if (workspaceManifestLocation?.endsWith(".yml")) {
|
|
188379
|
-
throw new error_1.PnpmError("BAD_WORKSPACE_MANIFEST_NAME", `The workspace manifest file should be named "
|
|
188379
|
+
throw new error_1.PnpmError("BAD_WORKSPACE_MANIFEST_NAME", `The workspace manifest file should be named "pxnpm-workspace.yaml". File found: ${workspaceManifestLocation}`);
|
|
188380
188380
|
}
|
|
188381
188381
|
return workspaceManifestLocation && path_1.default.dirname(workspaceManifestLocation);
|
|
188382
188382
|
}
|
|
@@ -216307,7 +216307,7 @@ var require_recursive5 = __commonJS({
|
|
|
216307
216307
|
exports2.commandNames = ["recursive", "multi", "m"];
|
|
216308
216308
|
function help() {
|
|
216309
216309
|
return (0, render_help_1.default)({
|
|
216310
|
-
description: "Concurrently performs some actions in all subdirectories with a `package.json` (excluding node_modules). A `
|
|
216310
|
+
description: "Concurrently performs some actions in all subdirectories with a `package.json` (excluding node_modules). A `pxnpm-workspace.yaml` file may be used to control what directories are searched for packages.",
|
|
216311
216311
|
descriptionLists: [
|
|
216312
216312
|
{
|
|
216313
216313
|
title: "Commands",
|