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 4.0.3 to 5.0.0

2

lib/index.d.ts

@@ -1,1 +0,1 @@

export default function findWorkspaceDir(cwd: string): Promise<string | undefined>;
export declare function findWorkspaceDir(cwd: string): Promise<string | undefined>;

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.findWorkspaceDir = void 0;
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const error_1 = __importDefault(require("@pnpm/error"));
const error_1 = require("@pnpm/error");
const find_up_1 = __importDefault(require("find-up"));

@@ -19,7 +20,7 @@ const WORKSPACE_DIR_ENV_VAR = 'NPM_CONFIG_WORKSPACE_DIR';

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}`);
throw new error_1.PnpmError('BAD_WORKSPACE_MANIFEST_NAME', `The workspace manifest file should be named "pnpm-workspace.yaml". File found: ${workspaceManifestLocation}`);
}
return workspaceManifestLocation && path_1.default.dirname(workspaceManifestLocation);
}
exports.default = findWorkspaceDir;
exports.findWorkspaceDir = findWorkspaceDir;
async function getRealPath(path) {

@@ -26,0 +27,0 @@ return new Promise((resolve) => {

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

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

"dependencies": {
"@pnpm/error": "3.1.0",
"@pnpm/error": "4.0.0",
"find-up": "^5.0.0"

@@ -31,3 +31,3 @@ },

"devDependencies": {
"@pnpm/find-workspace-dir": "4.0.3"
"@pnpm/find-workspace-dir": "5.0.0"
},

@@ -34,0 +34,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