@tinkoff/package-manager-wrapper
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -27,3 +27,3 @@ import type { Options } from 'execa'; | ||
export declare abstract class PackageManager { | ||
readonly name: 'npm' | 'yarn' | 'unknown'; | ||
readonly name: 'npm' | 'yarn' | 'pnpm' | 'unknown'; | ||
protected rootDir: string; | ||
@@ -30,0 +30,0 @@ protected registry?: string; |
@@ -6,2 +6,3 @@ import { resolve } from 'path'; | ||
import { YarnPackageManager } from './YarnPackageManager.es.js'; | ||
import { PnpmPackageManager } from './PnpmPackageManager.es.js'; | ||
@@ -20,2 +21,5 @@ const checkLockFile = (rootDir, lockName) => { | ||
} | ||
else if (checkLockFile(rootDir, 'pnpm-lock.yaml')) { | ||
packageManager = new PnpmPackageManager(packageManagerOptions); | ||
} | ||
else { | ||
@@ -22,0 +26,0 @@ if (throwUnknown) { |
@@ -10,2 +10,3 @@ 'use strict'; | ||
var YarnPackageManager = require('./YarnPackageManager.js'); | ||
var PnpmPackageManager = require('./PnpmPackageManager.js'); | ||
@@ -24,2 +25,5 @@ const checkLockFile = (rootDir, lockName) => { | ||
} | ||
else if (checkLockFile(rootDir, 'pnpm-lock.yaml')) { | ||
packageManager = new PnpmPackageManager.PnpmPackageManager(packageManagerOptions); | ||
} | ||
else { | ||
@@ -26,0 +30,0 @@ if (throwUnknown) { |
{ | ||
"name": "@tinkoff/package-manager-wrapper", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
19026
23
488