Skip to content

Commit

Permalink
Show warning when missing config. #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmourtada committed Mar 18, 2017
1 parent 49b64b9 commit 8dd616f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/config-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export function configLoader({
}: ConfigLoaderParams): ConfigLoaderSuccessResult | ConfigLoaderFailResult {

if (explicitParams) {

const absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl)
? explicitParams.baseUrl
: path.join(cwd, explicitParams.baseUrl);
Expand Down
3 changes: 2 additions & 1 deletion src/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export function register(explicitParams: ExplicitParams) {
});

if (configLoaderResult.resultType === "failed") {
throw new Error(configLoaderResult.message);
console.warn(`${configLoaderResult.message}. tsconfig-paths will be skipped`);
return;
}

const matchPath = createMatchPath(
Expand Down

0 comments on commit 8dd616f

Please sign in to comment.