Make workspace path in NPMResolver optional

This commit is contained in:
Leonid Logvinov
2019-01-23 17:02:02 +01:00
parent e8d68dc07f
commit de36670bdc

View File

@@ -9,7 +9,7 @@ import { Resolver } from './resolver';
export class NPMResolver extends Resolver {
private readonly _packagePath: string;
private readonly _workspacePath: string;
constructor(packagePath: string, workspacePath: string) {
constructor(packagePath: string, workspacePath: string = '/') {
super();
this._packagePath = packagePath;
this._workspacePath = workspacePath;