Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #47 from joscha/patch-1
Browse files Browse the repository at this point in the history
Allow `dtslint types @bla/foo`
  • Loading branch information
Andy authored Aug 14, 2017
2 parents 9c96ec5 + 79b1109 commit 0a43b6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ async function main(): Promise<void> {
process.exit(1);
}

if (arg.indexOf('@') === 0 && arg.indexOf('/') !== -1) {
// we have a scoped module, e.g. @bla/foo
// which should be converted to bla__foo
arg = arg.substr(1).replace('/', '__');
}
dirPath = dirPath === undefined ? arg : joinPaths(dirPath, arg);
}
}
Expand Down

0 comments on commit 0a43b6f

Please sign in to comment.