@superhero/core 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -671,8 +671,18 @@ export default class Core
|
|
|
671
671
|
|
|
672
672
|
if('string' === typeof absolutePath)
|
|
673
673
|
{
|
|
674
|
-
dependencies[
|
|
674
|
+
dependencies[id] = path.normalize(path.join(absolutePath, dependencyPath))
|
|
675
675
|
}
|
|
676
|
+
else
|
|
677
|
+
{
|
|
678
|
+
const error = new Error(`Could not resolve path for dependency "${id}"`)
|
|
679
|
+
error.code = 'E_CORE_RESOLVE_DEPENDENCY_PATH'
|
|
680
|
+
throw error
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
else
|
|
684
|
+
{
|
|
685
|
+
dependencies[id] = dependencyPath
|
|
676
686
|
}
|
|
677
687
|
}
|
|
678
688
|
|