New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/find-workspace-dir

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/find-workspace-dir - npm Package Compare versions

Comparing version 1000.0.2 to 1000.1.0

7

lib/index.js

@@ -13,8 +13,9 @@ "use strict";

const WORKSPACE_MANIFEST_FILENAME = 'pnpm-workspace.yaml';
const INVALID_WORKSPACE_MANIFEST_FILENAME = ['pnpm-workspaces.yaml', 'pnpm-workspaces.yml', 'pnpm-workspace.yml'];
async function findWorkspaceDir(cwd) {
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: await getRealPath(cwd) });
if (workspaceManifestLocation?.endsWith('.yml')) {
? path_1.default.join(workspaceManifestDirEnvVar, WORKSPACE_MANIFEST_FILENAME)
: await (0, find_up_1.default)([WORKSPACE_MANIFEST_FILENAME, ...INVALID_WORKSPACE_MANIFEST_FILENAME], { cwd: await getRealPath(cwd) });
if (workspaceManifestLocation && path_1.default.basename(workspaceManifestLocation) !== WORKSPACE_MANIFEST_FILENAME) {
throw new error_1.PnpmError('BAD_WORKSPACE_MANIFEST_NAME', `The workspace manifest file should be named "pnpm-workspace.yaml". File found: ${workspaceManifestLocation}`);

@@ -21,0 +22,0 @@ }

{
"name": "@pnpm/find-workspace-dir",
"version": "1000.0.2",
"version": "1000.1.0",
"description": "Finds the root of a pnpm workspace",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

"devDependencies": {
"@pnpm/find-workspace-dir": "1000.0.2"
"@pnpm/find-workspace-dir": "1000.1.0"
},

@@ -33,0 +33,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc