-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 09068a2
Showing
5 changed files
with
1,003 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# README | ||
|
||
- Subject [knip issue-678](https://github.com/webpro-nl/knip/issues/678) | ||
- the deep file structure should simulate a project path, which contains `builds` | ||
|
||
|
||
## Reproducer | ||
|
||
The repository presents a correct JS repository, which uses the dependency `chalk`. | ||
|
||
```bash | ||
cd knipuser/cicd/builds/project42 | ||
npm ci | ||
npm run knip | ||
|
||
# > [email protected] knip | ||
# > knip | ||
|
||
# Unused devDependencies (1) | ||
# chalk package.json | ||
``` | ||
|
||
The result is wrong. `chalk` is used. See analysis [in the issue](https://github.com/webpro-nl/knip/issues/678). | ||
|
||
Check `npm run knip -- --debug` to see that `src/index.mjs` is not matching, although entrypoint and it exists. |
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,5 @@ | ||
/node_modules | ||
|
||
# this rule matches outside | ||
# you can see `Users/knipuser/cicd/builds` is not being git-ignored. | ||
builds/ |
Oops, something went wrong.