@pnpm/find-workspace-dir
Advanced tools
Comparing version 3.0.2 to 4.0.0
@@ -12,8 +12,7 @@ "use strict"; | ||
async function findWorkspaceDir(cwd) { | ||
var _a; | ||
const workspaceManifestDirEnvVar = (_a = process.env[WORKSPACE_DIR_ENV_VAR]) !== null && _a !== void 0 ? _a : process.env[WORKSPACE_DIR_ENV_VAR.toLowerCase()]; | ||
const workspaceManifestDirEnvVar = process.env[WORKSPACE_DIR_ENV_VAR] ?? process.env[WORKSPACE_DIR_ENV_VAR.toLowerCase()]; | ||
const workspaceManifestLocation = workspaceManifestDirEnvVar | ||
? path_1.default.join(workspaceManifestDirEnvVar, 'pnpm-workspace.yaml') | ||
: await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, 'pnpm-workspace.yml'], { cwd }); | ||
if (workspaceManifestLocation === null || workspaceManifestLocation === void 0 ? void 0 : workspaceManifestLocation.endsWith('.yml')) { | ||
if (workspaceManifestLocation?.endsWith('.yml')) { | ||
throw new error_1.default('BAD_WORKSPACE_MANIFEST_NAME', `The workspace manifest file should be named "pnpm-workspace.yaml". File found: ${workspaceManifestLocation}`); | ||
@@ -20,0 +19,0 @@ } |
{ | ||
"name": "@pnpm/find-workspace-dir", | ||
"version": "3.0.2", | ||
"version": "4.0.0", | ||
"description": "Finds the root of a pnpm workspace", | ||
@@ -12,7 +12,7 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=12.17" | ||
"node": ">=14.19" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-dir", | ||
"keywords": [ | ||
"pnpm6", | ||
"pnpm7", | ||
"pnpm" | ||
@@ -26,3 +26,3 @@ ], | ||
"dependencies": { | ||
"@pnpm/error": "2.1.0", | ||
"@pnpm/error": "3.0.0", | ||
"find-up": "^5.0.0" | ||
@@ -32,4 +32,7 @@ }, | ||
"devDependencies": { | ||
"@pnpm/find-workspace-dir": "3.0.2" | ||
"@pnpm/find-workspace-dir": "4.0.0" | ||
}, | ||
"exports": { | ||
".": "./lib/index.js" | ||
}, | ||
"scripts": { | ||
@@ -36,0 +39,0 @@ "lint": "eslint src/**/*.ts test/**/*.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
4579
22
+ Added@pnpm/constants@6.0.0(transitive)
+ Added@pnpm/error@3.0.0(transitive)
- Removed@pnpm/constants@5.0.0(transitive)
- Removed@pnpm/error@2.1.0(transitive)
Updated@pnpm/error@3.0.0