Skip to content

Commit 58dcfa5

Browse files
authored
Add entry and project configuration hints (#1105)
1 parent 2506865 commit 58dcfa5

33 files changed

+344
-65
lines changed

packages/knip/fixtures/cli/index.js

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": ["src/entry.js"],
4+
"project": ["src/**"],
5+
"workspaces": {}
6+
}

packages/knip/fixtures/configuration-hints/lib/index.js

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "@fixtures/configuration-hints__lib"
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@fixtures/configuration-hints",
3+
"workspaces": ["lib"]
4+
}

packages/knip/fixtures/configuration-hints/src/entry.js

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": ["src/entry.js", "lib/index.js"],
4+
"project": ["src/**"],
5+
"workspaces": {
6+
".": {
7+
"entry": ["src/entry.js", "lib/index.js"],
8+
"project": ["src/**", "lib/**"]
9+
}
10+
}
11+
}

packages/knip/fixtures/configuration-hints2/lib/index.js

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "@fixtures/configuration-hints__lib"
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@fixtures/configuration-hints",
3+
"workspaces": ["lib"]
4+
}

0 commit comments

Comments
 (0)