This repository has been archived by the owner on Aug 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if you have a local dep that points to a missing file, it will attempt to resolve it as a remote. duo-parse treats something like `../../a/b/c` as `{ repo: '..' }`. if you also have a manifest, it will attempt to find `..` via regexp in the `dependencies` list. since it's a regexp, `..` will match just about anything. the end result is that you have an extra dependency being added to your build. in the case of css, it can be hard to trace this down. this throws when the dep looks like a path (ie: begins with "." or "/") and is not resolved locally. I don't believe it is possible to have a github repo that begins with either of these chars, so we should be safe here.
- Loading branch information
1 parent
70a5b22
commit 3d895cd
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
module.exports = require('/lib'); // should not exist! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
module.exports = require('./lib'); // should not exist! |