Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Fixes #17 (#18)
Browse files Browse the repository at this point in the history
* Fixes  #17

* Bumps version
  • Loading branch information
aminpaks committed Dec 20, 2017
1 parent e485932 commit 4cee3d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# typescript-library-bundler changelog

## 0.2.2

* Fixes a minor bug in a recursive call on Windows machines

## 0.2.1

* Fixes a minor bug in source-maps
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typescript-library-bundler",
"description": "Bundle a typescript library and makes it ready to ship for ES6, ES5, CommonJS and UMD",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",
"bin": {
"tsb": "./dist/cli.js"
Expand Down
3 changes: 2 additions & 1 deletion src/external-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ export async function resolveNodeModulePaths(searchInPath: string): Promise<stri
}

const parentDir = path.dirname(searchInPath);
const { root } = path.parse(parentDir);

if (parentDir !== '/') {
if (parentDir !== root) {
nodeModulePaths = uniqueArray(nodeModulePaths, await resolveNodeModulePaths(parentDir));
}

Expand Down

0 comments on commit 4cee3d3

Please sign in to comment.