Skip to content

Commit eae78d4

Browse files
committed
feat: Detect package.json file changes
1 parent 1a34c02 commit eae78d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"icon": "assets/icon.png",
3535
"engines": {
36-
"vscode": "^1.78.1"
36+
"vscode": "^1.79.1"
3737
},
3838
"categories": [
3939
"Linters",

src/Diagnostic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const diagnosticSubscribe = (
8383
)
8484

8585
// Trigger when any file in the workspace is modified.
86-
// Our interest here is to know about package-lock.json or pnpm-lock.yaml.
86+
// Our interest here is to know about the package.json itself, package-lock.json or pnpm-lock.yaml.
8787
const lockerUpdated = (uri: Uri): void => {
8888
const workspacePath = getWorkspacePath(uri)
8989

@@ -94,7 +94,7 @@ export const diagnosticSubscribe = (
9494
}
9595

9696
const lockerWatcher = workspace.createFileSystemWatcher(
97-
"**/{package-lock.json,pnpm-lock.yaml}"
97+
"**/{package.json,package-lock.json,pnpm-lock.yaml}"
9898
)
9999

100100
context.subscriptions.push(lockerWatcher.onDidCreate(lockerUpdated))

0 commit comments

Comments
 (0)