From de36670bdca8f8fb6839f0168bfc5ac49caa28f8 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 23 Jan 2019 17:02:02 +0100 Subject: Make workspace path in NPMResolver optional --- packages/sol-resolver/src/resolvers/npm_resolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/sol-resolver/src/resolvers/npm_resolver.ts b/packages/sol-resolver/src/resolvers/npm_resolver.ts index 1c9e56957..d9377989f 100644 --- a/packages/sol-resolver/src/resolvers/npm_resolver.ts +++ b/packages/sol-resolver/src/resolvers/npm_resolver.ts @@ -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; -- cgit