liferay-npm-build-tools-common
Advanced tools
Comparing version 2.0.0-rc.1 to 2.0.0-rc.2
@@ -42,2 +42,3 @@ 'use strict'; | ||
expect(mod.isExternalDependency('a-module')).toBe(true); | ||
expect(mod.isExternalDependency('fs')).toBe(true); | ||
@@ -47,3 +48,2 @@ expect(mod.isExternalDependency('./a-module')).toBe(false); | ||
expect(mod.isExternalDependency('/a-module')).toBe(false); | ||
expect(mod.isExternalDependency('fs')).toBe(false); | ||
}); | ||
@@ -50,0 +50,0 @@ |
@@ -53,3 +53,3 @@ 'use strict'; | ||
function isExternalDependency(modulePath) { | ||
return !isLocalModule(modulePath) && !isReservedDependency(modulePath) && !isNodeCoreModule(modulePath); | ||
return !isLocalModule(modulePath) && !isReservedDependency(modulePath); | ||
} | ||
@@ -56,0 +56,0 @@ |
{ | ||
"name": "liferay-npm-build-tools-common", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.2", | ||
"description": "Utility library for Liferay NPM Build Tools.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -36,2 +36,3 @@ import * as mod from '../modules'; | ||
expect(mod.isExternalDependency('a-module')).toBe(true); | ||
expect(mod.isExternalDependency('fs')).toBe(true); | ||
@@ -41,3 +42,2 @@ expect(mod.isExternalDependency('./a-module')).toBe(false); | ||
expect(mod.isExternalDependency('/a-module')).toBe(false); | ||
expect(mod.isExternalDependency('fs')).toBe(false); | ||
}); | ||
@@ -44,0 +44,0 @@ |
@@ -80,7 +80,3 @@ // List of built-in Node.js v7.10.0 modules. | ||
export function isExternalDependency(modulePath) { | ||
return ( | ||
!isLocalModule(modulePath) && | ||
!isReservedDependency(modulePath) && | ||
!isNodeCoreModule(modulePath) | ||
); | ||
return !isLocalModule(modulePath) && !isReservedDependency(modulePath); | ||
} | ||
@@ -87,0 +83,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
117027
1870