Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/find-workspace-dir

Package Overview
Dependencies
Maintainers
2
Versions
25
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 3.0.2 to 4.0.0

5

lib/index.js

@@ -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 @@ }

13

package.json
{
"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

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