Skip to content

Commit ca3c58f

Browse files
committed
Scope out the package name
1 parent dfaf540 commit ca3c58f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function runCommandsIfFileChanged(fileToCheck, commands) {
2828
}
2929
}
3030

31-
const configResult = cosmiconfig(pkg.name).searchSync();
31+
const configResult = cosmiconfig('run-if-changed').searchSync();
3232

3333
if (!configResult || configResult.isEmpty) {
3434
process.exit(0);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "run-if-changed",
2+
"name": "@hkdobrev/run-if-changed",
33
"version": "0.1.0",
44
"description": "Run a command if a file changes via Git hooks",
55
"bin": "index.js",

0 commit comments

Comments
 (0)