Skip to content

Commit

Permalink
Revert "fix(dot import): Fix import XYZ from '.' (#52)"
Browse files Browse the repository at this point in the history
This reverts commit b4194c0.
  • Loading branch information
EntraptaJ committed May 12, 2020
1 parent 489d87e commit 33612d1
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 64 deletions.
5 changes: 0 additions & 5 deletions Testing/Tests/DotImport/package-lock.json

This file was deleted.

12 changes: 0 additions & 12 deletions Testing/Tests/DotImport/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions Testing/Tests/DotImport/src/Hello/helloWorld.ts

This file was deleted.

2 changes: 0 additions & 2 deletions Testing/Tests/DotImport/src/Hello/index.ts

This file was deleted.

21 changes: 0 additions & 21 deletions Testing/Tests/DotImport/src/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions Testing/Tests/DotImport/src/randomLoader.ts

This file was deleted.

8 changes: 0 additions & 8 deletions Testing/Tests/DotImport/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { getTSConfig } from './Utils';
const rootModulePath = `${process.cwd()}/`;
const baseURL = pathToFileURL(rootModulePath).href;

const relativePathRegex = /^\.{1,2}[/]?/;
const relativePathRegex = /^\.{1,2}[/]/;
const hasExtensionRegex = /\.\w+$/;

// TODO: Allow customization of extensions
Expand Down

0 comments on commit 33612d1

Please sign in to comment.