@pnpm/find-workspace-dir
Advanced tools
Comparing version 4.0.3 to 5.0.0
@@ -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
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
5632
35
+ Added@pnpm/error@4.0.0(transitive)
- Removed@pnpm/error@3.1.0(transitive)
Updated@pnpm/error@4.0.0